Powershell Script to remove disabled users from shares
I'm looking for a powershell script to remove disabled users from network shares and its subfolders. Thanks!
View ArticleScript to lockdown HKCU key
Is there a script I can run to restrict permissions on a registry key in HKCU. I need to restrict the permissions to read only for our users for this key:HKCU\Software\Policies\Microsoft\Office\11.0\...
View Articleremove the end of file name
I need to remove the end of file name for all file in folder using a batch or a script. For example remove xxxx.xyz from file.doc.xxxx.xyzAny suggestion will be greatly appreciated
View ArticleSend-MailMessage not working...what would you suggest that I try...?
PowershellSend-MailMessage-to"pr@xxx.com"-from"pr@xxx.com"-subject"test"-SmtpServer"server.xxx.com"-UseSslI type the following code above (PowerShell 5).I get the error below.I would like to know what...
View ArticleList ONLY OUs
HiI like out-GridView. It rocks my world.What I'm trying to do is list sub-OUs of an OU, which I can do like this:Powershelldir|Out-GridViewBut within this OU there are a couple of objects that aren't...
View ArticlePowershell (or otherwise) LIST largest files on server and what accessed last?
Any Powershell gurus have a way (I've searched and the quality of answers through "googling it" vary greatly) of listing the largest files on a server and what programs accessed them last?
View ArticlePowershell 5.1 & MAXPATH
.net 4.6.2: "Long Path Support (MAXPATH) - We fixed the 260 character (MAXPATH) file name length limitation in the System.IO APIs."...
View ArticleCan a PowerShell function have 2 functions on one button click event?
In PowerShell I would like to add a function to close the from when the button is clicked and after is calls the second script. mostly from what I am finding is make a second button and close()...
View ArticleGet SQL Agent Job step ID from powershell
Hi again guys!!!Now this time I would like to get the SQL Agent Job stepID from powershell. I only have the StepName and I would like to get information from the Job History as follow:write-host...
View ArticleCreating a script to run the executable
I created an executable which enables Wake-on-LAN and disables deep sleep mode in the BIOS. I want to create a script that reads the registry and if it does not exist, it creates it. I am new to...
View ArticleCan't seem to find the right command to do.....
Basically I am making a virtual tour for my girl.. :) She's always wanted to go to Santa Monica and I figure what the hell I'll bring it to her via a Virtual Tour.Basically I started off creating a...
View ArticleLittle Known PowerShell Features
I should start this as a regular column!Like so many of you, I dabble a bit in PowerShell and always keen to learn more. This week I am looking at DSC, especially the bits around finding resources and...
View ArticleCan I remove applications with PowerShell with a no-restart flag?
I am removing Bloat from new HP laptops and would like it if after each HP Bloat software didn't restart the client when it finished uninstalling. There must be a no-restart flag or argument I am...
View ArticlePowerShell SharePoint Get Custom Field Values?
Hello,I've been searching and searching, and I think my brain is fried. Please helpSharePoint 2007Windows Server 2003PowerShell v2I loaded some SharePoint PowerShell scripts found here:...
View ArticlePowershell script to copy all files of certain extension to share
I'm looking to backup users PST files with a powershell script. I already have a way to pull the latest shadowcopy and place it in C:\MyShadow.I need a script that will search C:\MyShadow for all .PST...
View ArticleTrying to import a GPO with powershell, from a backup
I have a backup of a GPO and I"d like to bring it back to run some tests. I have a script that works for a friend in the field, but it's not working for me. This is the Powershell...
View ArticleRename PC script with GUI using Powershell
Hi there,im learning PS at the moment and because my vacation is coming closer and i am the only one here interested in using and writing PS scripts im trying to simplify them.I found a nice way...
View ArticleSet powershell script as trusted?
I set the execution policy on my desktop to run scripts unrestricted, however I still get this prompt:Is there any way to set certain scripts as trusted so I don't have to choose RUN ONCE? I did google...
View ArticlePowerShell 2 Clipbaord
I need to copy a string from a txt file to the clipboard "helloworld" | clipdose not work and is not recognized in PS 2. Is there a way to do this without updating to PS 5 on new laptops? I would...
View Article