Hi , I would like to use ERROR handling with Try&Catch, that can handle $computername variable, if computer is not found, message comes up:...
RolandR2D2
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...
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...
DomainRole
Hello, I understand this script, only one thing I am interested in and not fully understood, that is "domainRole" property. How can I...
Creation of Ad users
Gentlemen, This little script is working however the password and the user wont be "enabled" and "pswd never expires" won't...
GroupMemberShip
Hello, I am able to find/list the AD user's groupmembership with this little function: function Get-GroupMembership{ ...
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...
Used Disk Space
Hi Masters, I would like to get "remotely" more servers Disk infos as: Diskname,WholeDiskSize,FreeSpace,UsedDiskSpace. What I have...
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...
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...
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) {...
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?...
Copy-Item or Robocopy
# Hi, # I would like to use a simple copy by Copy-Item , but criteria is to exclude a big folder while copying named "Virtual Machines":...
Variables for DOS parameters with function
Hi, I would like to create a function with dos command(xcopy) and to create for this DOS command paramaters in variables ( original dos command with...