Bulk .xls to pipe delineated file?
Hey folks, I’m hoping you might be able to help me figure out this issue I am trying to solve. I’m currently trying this powershell code found here foreach($file in (Get-ChildItem...
View ArticleTrouble with REST API Call
I am brand new to PowerShell, but I can already tell it will be a powerful tool and worth my time to learn. Unfortunately I am also new to using web API’s, so this has been a tough project for me....
View ArticleGet-Aduser homedirectory move content to archive folder
I’m working on an off-boarding script where we move users homefolders to an archive folder. For some reason I cant get it to pass the homedirectory without getting an error. Can anyone spot what I’m...
View ArticleNeed some help filtering
Hi everyone, I’m trying to write a command which will give me as an output a list of users from AD. I got long list of users which is something like DEV1 is first user name in the OU and DEV200 is...
View ArticleReacting to Boolean values in a variable with if, else, and elseif statements.
The whole point of this is to see if there are any dead/non-responsive entries list on the server. I’ve got this script that basically: Gets a list of printers for my location from our printer server....
View ArticleHow can I better improve my logic?
In conjunction with my custom post processor that I have developed I have a API call to Sickrage to see if the show is not in its Database it will add it. Right now my logic is pretty bad as it will...
View ArticleHow do I make sure that SQL Server statements are running without any errors?
I have a script that will insert some data into a SQL Server. It goes something like this. Invoke-SqlCmd -ServerInstance Server -Database Database -Query “Insert INTO A …{code}” Add-Content -Path...
View ArticleReferenced module functions on remote computer
Hi /r/powershell. Hopefully someone here has a solution for what I’m trying to solve. Or at least see if there is a better solution. I’m working on refactoring a module in to a real Powershell module...
View ArticlePowerShell and KeePass
submitted by /u/Ninjigen [link] [comments] The post PowerShell and KeePass appeared first on How to Code .NET.
View ArticleQuestion Bulk syncronize to Office 365 for all users creation in AD from CSV
One simple question: we have got about 1000 users in CSV file. is it possible to sync Office 365 via FIM after create all of them in AD? For example: Import Active Directory accounts from CSV file...
View ArticleCompressing Files based on Date
I’m new to powershell, but have been able to create a couple scripts that have really made my life easier. What i’m looking to do is Compress-Archive files in a Folder based on Month. I have a script...
View ArticleParsing Invoke-WebRequest
I’m a sports fan, and also have aspirations of getting better at parsing web output with PowerShell. I’m trying to get each NFL team and some various team stats based on the table in this link:...
View Articlelooking for some help on script logic [code indentation]
howdy y’all, i’m doing the usual code formatting exercise. not layout [yet], only the indentation. my coding style is very open and that makes re-indenting things pretty easy. well, mostly. there are...
View ArticleSSL & invoke-webrequest/invoke-restmethod
The issue of these cmdlets not having a –ignore-validation flag (even though other Powershell commands do) is well documented throughout the internet, but does anybody have any new recommendations for...
View ArticleGet-Childitem -include not working as expected?
I have a folder full of log files. This command shows them all to me: Get-childitem -path “$ServerC$WindowsSystem32LogFilesHTTPERR” (They are all .log files) This one doesn’t show any files:...
View ArticleCopy a log file but change the name everytime it runs automatically?
Haven’t used any loop before so I could use some assistance. I will put this on the Task Scheduler but need assistance. I want to robocopy a log.log file and the destination name will be Jan –...
View ArticleMultiple OU/AD User Creation Script
I know theres a bunch of these out there but figured I would share my variation of on when there’s multiple OU units involved. Pardon how bulky it is, still new to powershell but feel free to...
View ArticleCreated a table within a function. How can I access that table outside of the...
I am making an automated reboot script for a processing farm of ~650 machines. We have a proxy that runs on each machine that allows the machine to exchange calls with what is basically a load...
View ArticleTransferring large amount of documents in SharePoint from one repository to...
How can I do this with Powershell? Also is it possible to re-assign or change metadata? submitted by /u/MrBlooregardQKazoo [link] [comments] The post Transferring large amount of documents in...
View ArticleProper fix file names for OneDrive. Script Sharing.
Here is the final result: $ErrorView = 'CategoryView' $answer = Read-Host "Are you sure you wan to rename a large selection of files? This cannot be undone! (y/n)" if($answer -eq "y") {...
View Article