NewRemote-Process

5 January 2019 jeevanbobba 0

cls Function New-RemoteProcess { #[CmdletBinding()] Param( [String]$ComputerName = $env.computername, [String]$Cmd = $(Throw “You must enter path to the command which will create the process”), [String]$ac, […]

Delete User profiles using DELPROF2

23 August 2018 jeevanbobba 0

Create .csv file with  column name “Computername” $servers = import-csv C:\Temp\servers.csv $comps = ($servers).ComputerName $comps | %{ New-Item -ItemType Directory -Force \\$PSItem\c$\Temp; Copy-Item C:\Temp\Delprof \\$PSItem\c$\Temp\Delprof […]

Moving Object from one OU to other OU

12 July 2018 jeevanbobba 0

Get-Content C:\temp\Computers.txt| %{Move-ADObject -Identity “CN=$_,OU=WIN10,OU=ABC,OU=Computers,DC=CHILD,DC=Domain,DC=Vmwareenterprise,DC=com” -TargetPath “OU=Prod,OU=WIN10,OU=ABC,OU=Computers,DC=dev,DC=DIR,DC=vmwareenterprise,DC=com”} -Verbose

No Image

Username creation

7 May 2018 jeevanbobba 0

Just give input as first name and last name in inputfile   Jeevan bobba Abcdef ghijklmnopqrst It will create username and by adding v- at […]