'As' parameter not accepted
I'm trying to export a Windows 10 start menu configuration, and using the Microsoft suggested line to do so. I worked for Windows 8.1, and there's multiple guides that recommend the same thing for 10....
View ArticleGet Remote Computer Information w/ or w/o PowerShell
I have been tasked to come up with proactive ways of reducing the number of tickets received from certain departments. One project I am working on is getting computer information such as available hard...
View ArticleRemoving a Room List via Powershell
Hi all,I created some Room Lists a while ago in O365, however one of the lists is no longer needed (old office). I can't seem to find the command to remove Room Lists from Room Finder.Anyone know the...
View ArticlePowerShell - Moving directories containg string to subdirectory
Powershell$SourceDir="c:\files\*\data\"$DestinationDir="c:\files\*\data\2015\"$dir=dir$SourceDir|?{$_.PSISContainer}foreach($din$dir|where-object{$_.Directory.Name-like"*15"}){ForEach-Object{Move-Item$...
View ArticlePowerShell - Moving directories containing string to subdirectory
Powershell$SourceDir="c:\files\*\data\"$DestinationDir="c:\files\*\data\2015\"$dir=dir$SourceDir|?{$_.PSISContainer}foreach($din$dir|where-object{$_.Directory.Name-like"*15"}){ForEach-Object{Move-Item$...
View ArticleCSV Export/Import from command prompt for a cmd executed .jar file
Hi Spiceheads,I have a decrypt.jar file which is executed from command line. The problem is i need to decrypt one by one each email address, but is there a way to script so that i can import export...
View ArticlePowershell Get-WinEvent -LogName ForwardedEvents
Hello,On Comp1 i have ForwardedEvents grabbed from remote...
View ArticleRemove-MailboxExportRequest
Hello,When an employee is terminated we run:PowershellNew-MailboxExportRequest-Mailbox$USERNAME-FilePath\server3\TerminatedEmployees$\$USERNAME\$USERNAME.pstDepending on the user's mailbox size this...
View ArticlePowershell - Delete PDFs (or any file extension) older than 90 days, with log
Hey, wrote another script today.Had a request to delete the PDFs out of a certain folder that are 90 days old. So I wrote a script for it in Powershell.However, I'm not comfortable just deleting files...
View ArticlePoor performance with CIM commands
Is there any way to speed up the commands below? Or alternative commands to run? Get-CimInstance doesn't take very long (<1 sec), but Get-CimAssociatedInstance takes about 1 minute, 30 seconds...
View ArticleIntroducing the Windows PowerShell ISE Preview
I am definitely in the "I just have to edit this code and move on with my day" crowd. But, there are folks in the other "I am creating new code and need more IDE type features" crowd. For you, the...
View Articlepowershell move files to folders depening on file name
I want to create a script that will search through a source folder for files that contain static first 5 character an move it to a folder depending on the file name. also it should check if the files...
View ArticlePowershell for Active directory
Hello lovely spicelings!So I am currently cleaning up our AD and as part of that I need to get information for user accounts from a SQL table into AD (It is a long story). Anyway knowing Powershell...
View ArticlePowershell for Active Directory
Powershell$OU1=$item.HIERARCHY_DESC_LEVEL_3-replace"(.+)",'OU=$1,'$OU2=$item.HIERARCHY_DESC_LEVEL_6-replace"(.+)",'OU=$1,'$OU3=$item.HIERARCHY_DESC_LEVEL_7-replace"(.+)",'OU=$1,'$TargetOU="${OU3}${OU2}...
View ArticleHow do I replace a file once a year for all user profiles?
Hello,Once a year, I have a database file that I need to copy to a folder within each users profile to replace last years database file. Not all users have this file/folder though, only those that need...
View ArticlePowerShell is now 10 years old – here's five ways to get started
Microsoft first launched PowerShell in 2006, which means the management framework is now celebrating its 10-year-old anniversary. Currently at version 5.0, PowerShell continues to benefit IT pros in...
View ArticleCannot non-truncated Get-DhcpServerv4Reservation output
I am trying to get a non-truncated output of a 2012 R2 DHCP server's DHCP reservations so that I can modify it and import it back into a new scope with new subnet.EVERYTHING I have tried ends up with...
View ArticleDsmod command
Good day,I was wondering if there is a way to edit and Active directory property value namely, "homePostalAddress" and "employeeNumber"we are hoping we could do this for around 8000 users, we currently...
View ArticleGPA and Kleopatra
Hello All,I am trying to encrypt files using the public key and want to know if anyone has ever created a script to automate this process. preferably a PowerShell script that will encrypt each file in...
View ArticleAdding multiple "Address Spaces" to a SendConnector in Exchange 2010 using PS
Well, I was able to create a New Sendconnector with multiple address spaces, but I need to add like 300 more address spaces.Here is what I'm using now, would like to call a .csv file if possible with...
View Article