What is another way to verify a machine is offline other than using...
This is the script that I have Import-Module activedirectory$rtn = $null$time = (Get-Date).AddDays(-30)Get-ADComputer -Filter {modified -lt $time -and OperatingSystem -like 'Windows 7*'}|ForEach-Object...
View Articlecopy-item fails
$grab = get-childitem "C:\Temp" -recurse | where {$_.extension -eq ".txt"} | % { Write-Host $_.FullName } foreach ($item in $grab) {Copy-Item $item -destination "c:\Find"} When I run that above...
View ArticleExpand multiple embedded objects with -expandproperty
Hey all.. I have a cmdlet where i'm trying to use -expandproperty but im failing miserabley... This is for the netapp powershell toolkit but basically there is a object securityrules So it looks like...
View ArticleHow to update POWER SHELL V.1!!!!
Well I have been search for my version of power shell and I found it on assessories folder which says it is v.1 but web plataform installer 5.0 I have v.2 as installed so I do not know which one is...
View ArticleHow to generate report - AD users with right to create AD objects
Hi.How can I generate a report that lists AD Users, groups with the right to create AD objects? I cannot figure out where to start. RegardsCarsten
View Articlehow do I get the dynamic WAN (PPP/SLIP) Interface number in a powesrhell...
I am a newb to Powershell scripting so I can take no credit for the code here as it has all been borrowed from what I have found online. I would like to use a powershell script to add a route bound to...
View ArticleFinding the number(.count) of passwords
Iwant to find outhow manyusersare using the defaultpassword has not been.the default passwordis called"Password"can youhelp me here?Greetingsfrom theWorld ChampionCountryMarek
View ArticleHow do I arrange mutilple foreach loops into a single loop for each item?
I have written this script to find out who has access to an Exchange Distribution list. They are locked down so staff can’t spam the whole business with their latest request to sponsor them for...
View ArticleMonitor a folder that the number of files grows and shrinks and create GUI form.
I am trying to create a Powershell script that will do the following:I need to monitor a folder that the number of files grows and shrinks. 1. Display a GUI form that contains a label that displays the...
View ArticlePowershell to logon to the application
I am trying something which I had never tried before in the powershell scripting....My requirement states in the steps below: 1. Launch the application. 2. Enter user credentials 3. search for a text...
View ArticleCould not load file or assembly 'PresentationCore'
I've written a PowerShell script that copies an Excel range to the clipboard and exports it as an image. When I come to run it in Windows 7 with .net 4.5 it's fine, but it doesn't work in Server 2008...
View Articlefut coins WKM7 85AA pZy7
Far from samsung cases brother three, all with eyes to see samsung s3 cases contempt. Sun wipe a face red melon pulp, said: three- Today seems to be unable to return home, there is beauty accompanied...
View ArticleSet access control on a printer via Powershell?
I want to deletetheuserEveryone in theSecurity tabof thePowerShellandadd anotheruser.It's about aprinter.Theauthorization is tobeprint only.CanI achieve thisthrough thePowerShell 2.0 ??
View ArticlePowerShell script to list installed printers on a list of computers
Hello,I need a PS script that can list all installed printers using a list of computers. Something like what this script does but for more than 1 computer:Get-WmiObject -class Win32_printer| ft name,...
View ArticleThis script will Grant usb exception by asking the admin to place the machine...
$machine= Read-Host "what machine would you like to give usb exception too" Enter-PSSession -ComputerName $machinecd hklm: Set-ItemProperty -Path...
View ArticlePractical PowerShell Part 4: Output Formatting
I hope the journey is more valuable than the destination. When we left last time, I had a script that wrote a custom object to the pipeline. This is the relevant section of code. Read More
View ArticleAll 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 "Powershell" folder on C:\ drive, but this is far far away my...
View ArticleGet the process owner via PowerShell
et’s say you’ve got an app that needs to be closed throughout your environment. If you can identify that app by a running process, you’ll probably want to know who has the application/process still...
View ArticleSet Up Multiple Azure VM Servers with PowerShell
ou also don't want to put your data and log files on the operating system disk, so you need to add disk drives to properly place your data, and you need to enable TCP ports so you can communicate with...
View ArticleGet Service accounts list from remote server.
Hello Team,I wrote a code to get the service accounts list from remote server where i skipped Slandered Service accounts .What i am looking is ...I want a services which are running with Service...
View Article