RolandR2D2

Try & Catch

Hi , I would like to use ERROR handling with Try&Catch, that can handle $computername variable, if computer is not found, message comes up:...

read more

Import GPO using CSV

Hi Masters, I have created PS script that nicely handling GPO links(import etc.) that working well, butDo you have any ideia or give a hint, How can...

read more

All drives

Hi, Is there a way to search across all drives on the computer? E.G: C:; D:; E: etc.. Starting from this short line, where I am searching...

read more

DomainRole

Hello, I understand this script, only one thing I am interested in and not fully understood, that is "domainRole" property. How can I...

read more

Output files

Hi there, I am using out-file for output, and output file contains very long rows.. so I did e.g.: >.myscript.ps1 | out-file...

read more

Used Disk Space

Hi Masters, I would like to get "remotely" more servers Disk infos as: Diskname,WholeDiskSize,FreeSpace,UsedDiskSpace. What I have...

read more

Ping test

Hi, I have a script (test-connection) that checks the servers are pingable or not, no problem with it, but I need is the ip addresses for each...

read more

CsV_Format

Hi, This little script generates csv file that contains services then add this data to the already existing (append to) host.csv (host contains...

read more

Ping & RDP status

Hi, I have a little script that indentify the ping status of servers: get-content c:servers.txt | foreach { if (test-connection $_ -quiet) {...

read more

Exit from script

Hi, In my script there is a possibility to exit, but it does not... could you give me a hint? when I choose "Would you like to run again?...

read more