Skip to content

Commit 29a1442

Browse files
Merge pull request #300 from vaporup/main
Win_Users_List.ps1 - No need for a temporary file, Remove a duplicate check script
2 parents c55280f + 6d5ed4b commit 29a1442

3 files changed

Lines changed: 6 additions & 93 deletions

File tree

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
########
2-
### You can run this as a one of Script and save to Notes, setup a custom field and use a colelctor task or use tasks and check output
1+
# You can run this as a one-off script and save to Notes,
2+
# setup a custom field and use a collector task
3+
# or use tasks and check output
34

4-
get-WmiObject -class Win32_printer | fl Name, PortName, Shared
5+
Get-WmiObject -class Win32_printer | Format-List Name, PortName, Shared

‎scripts/Win_Users_List.ps1‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# This script return the list of all users and checks
1+
# This script returns the list of all users and checks
22
# if they are enabled or disabled
33

4-
get-localuser | Select name,Enabled > $env:TEMP\users.txt
5-
Get-Content $env:TEMP\users.txt | foreach {Write-Output $_}
4+
Get-LocalUser | Select Name,Enabled | foreach { Write-Output $_ }

‎scripts_staging/Checks/Is TCP port open.ps1‎

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)