Powershell - Get Capital Letters from a string
Hi thereIm doing a script to get the content of a text file which helds several names in a variable called $names. After that, i need to get the capital letters only and put this in another variable,...
View ArticlePowershell Crashing, Faulting application name: powershell.exe, version:...
I am not sure where to post this but anyway here it goes...PowerShell Crashes when our users (Non Admin) try to run PowerShell scripts wehn logged into our W2k8 RemoteDesktop Servers. I have been...
View ArticleWhy do I need to add a wildcard designator to get DIR to show the content of...
Why do I need to add a wildcard designator to get DIR to show the content of a subdirectory that has an extension?<#c:#> mkdir subdir.bak Directory: C:\users\larry\documents\windowspowershell...
View Articletrouble with doublequotes when executing a dos command from powershell
I have to create a number of scheduled tasks using schtasks dos command. This is fine in dos, but I need to run this via a powershell script.The command im running is: schtasks /create /S rcsitms /tn...
View ArticleBatch - script call script
I have a puzzling problem: I have a script that when I click in a button, it runs another .ps1 script. In Powershell ISE it works perfectly, but when I start from a Batch Script it not work, not start...
View ArticleGrab Lastest File name from subdirectory, if it's older than 30 days, write...
I have a folder (backups) that has lots of subdirectories (cs123, cs345, etc). I'm looking for a script to do several things:go through each folder, grab only the most recent file name BUT only if...
View ArticleCan you supply multiple identities to the Add-ADGroupMember object?
Hi, I want to add a new AD User to a number of groups, and I would like to know the best way of doing it.I have created four groups. SupportFinanceWarehouseProjectsI can add the user to a single group...
View ArticleRemove File System Item Unauthorized
I'm running a single server where I allow customer to remote desktop connect to the server, once they connect our program automatically launches, thus, they never see the desktop, I have it pretty...
View ArticleThinking about using the Windows Event Logs as my main log store - looking...
I have been writing some larger scripts that write to physical log files. Until today I have avoided trying to use the Windows Event logs, but, am beginning to rethink this and wondered if anyone has...
View ArticleExport AD group members to csv powershell with full details
Hi, please help me...How to Export AD group members to csv powershell with full detailsfasil cv
View ArticleHow can I set a path for a new AD-User in this Switch example?
Hi, I am nearing the end of my script that creates a new ad user, adds them to a set of groups, and moves them to their correct ou.The problem I have is that I cant work out how to move them to the OU....
View ArticleStuck in PS 2.0, needing to bind cert to site but only getting HTTPS ports
Okay, my scripting and PowerShell abilities are stretched. I have been tasked with managing a script that constructs the app pool, then the site (attaching the app pool as it is constructed), then...
View ArticleError using Set-ACL on NAS Share
Hi all,I'm trying to create homefolders using a script.One of the steps is to disable inheritance and removing the "domain users" permissions.Our homefolders are located on a Synology NAS.I use the...
View ArticleSQL Job to run powershell modifying excel
Hello Forum Readers,I am in a bit of unchartered waters when it comes to what I am looking to accomplish. I have an excel chart that needs to be updated through powershell. The script runs fine when...
View ArticleArray contents go missing?
I am using PowerShell to display a form, but when it comes to retrieving the content, it seems to have disappeared.Here is the sample code. The array variable gets created in the body of the...
View ArticlePowerShell with WMI Set ?
From PowerShell of “Get-WmiObject –List “ previous builds have “MOE” with the below 4 Attributes which is later referred in another PowerShell script in my Task Sequence.MOE {}...
View ArticleHelp needed - Powershell script
Hey all,I've been tasked to write a script that will run on either Windows 2003 and/or Windows 2008 DC's. The script needs to go to a specific OU and write to file all the PC's and their attached...
View ArticleOdd problem with a test-connection script exporting to csv
So I have this weird issue exporting results from a Test-Connection command.Everything works fine in the script below until I export $My_result into a CSV file.It exports correctly, but it appears to...
View ArticleTraverse through events in Security logs generated after the last event read...
Here is a script that will filter events from Security logs for Logon types and the primary focus here is that the below code should output results or should execute on the logs generated after the...
View ArticleImporting a CSV & HTML
HiOur warehouse team would like displayed on a big telly mounted on the wall the packing stats for each individual packer.We can export as a CSV or tab delimited text file the packer's username, full...
View Article