Regular Expression that checks if no numbers in string
I need to check if a string contains numbers anywhere in the value. I've seen quite a few samples out there, but none of them seem to work as expected. This was by far the most common:$Test = "First...
View ArticleTrigger VBS Script on Folder Open Help
I am not a programmer. I learn as I go. I have been looking for a few days for a solution for what I want to accomplish. Basically I want to trigger a VBS script when a folder is opened. I have looked...
View ArticleMonitor Folder and copy file to other folder every time file is created in...
How do I Monitor a Folder and copy a file to another specified folder every time that file is created in monitored folder?Bill Voorhees
View ArticlePowershell conundrum
Hello everybody, today I am presented with a challenge in school I'm supposed to be learning power shell, yet my teacher hasn't really taught us anything (besides him reading from the book aloud) and...
View Articlevbscript for outlook signature not work with office 2013
hi, i wrote a script that set a new mail signature for my company users. my code use a word doc as a template and change some key-words to another (user name, title and more). it work great with office...
View ArticleImport-PSSession -WarningAction not working as I thought
In a previous post (Warning when using exchange snap-in in PowerShell) I was asking how to properly connect to Exchange 2010 via powershell in a script with no output to the user because I am...
View ArticleAD Authentication and credentials encryption
Hello, I need to authenticate to Active Directory using different credentials through the System.DirectoryServices.DirectoryEntry in a PowerShell-script. Security is a huge deal in the environment I'm...
View ArticleHELP: Enumerating Files in folder -> RegExp-ing special patern file names
Hi everybody. I’m Testing this piece of Jscript code: Function enFilesInFldr(folderspec){ var objFSO = new ActiveXObject("Scripting.FileSystemObject"); // FSObject var f =...
View ArticleHow can I export or import the list from a jpeg file's extend attribe?
Hi,I want to make sure that people can get the same list when they use the file extend tag"TAGS". So I want to use a script to import the same list to every one.What can I do?What's the point?
View ArticlePowershell to retrieve last object created in AD OU
Hi Scripting Guys, is it possible for Powershell to look at a specific OU in AD and then display or write to a text file the last item created in the OU ?Thanks in advance
View ArticleExport all children OU's to a CSV
Hi this is my first time posting, ill keep this short.I am trying to create a script to export all direct children OU's of a particular parent OU to a CSV.The parent OU called "Clients" has 30 direct...
View ArticleHow do i log my Batch file?
I created a script and i scheduled it to run every day.Some days the script doesn't succed and i need to know why.The script's porpuse is to compress and then move the Sql's database to another...
View ArticleError using PSDrive SQLSERVER: after loading SqlServerProviderSnapin
HiI will execute a number of PowerShell scripts (v. 3.0) where I want to use both SqlServerCmdletSnapin (Invoke-Sqlcmd) and SqlServerProviderSnapin (PSDrive (SQLSERVER:\).Since I will execute multiple...
View Articleexport results
found this great script about comparing files but need help with exporting results.is it possible to export the below results to txt or csv?I tried to add export-csv and out-file to the end of the...
View ArticleChange multiple user object attribute using CSV file
Hello,I'm looking for a way to modify the department attribute for user objects. There is a csv file available with 2 collums, 1 is the samaccountname, the other is the departmentname, Now i'm looking...
View Articlepowershell - to see if files exist on remote machines and export to txt
I am looking for a powershell script to see if couple of file exists on remote user machines and if there is no file report to .ext file. All are domain machines. thank you.
View ArticleRequest for a hidden remote destop script
Basically what i need it to do is: run remote desktop connection (mstsc.exe) in admin mode and remote (using admin credentials) to a server in hidden mode (no window visible) then disconnect as soon as...
View ArticleChanging file ownership using PowerShell natives alone
All,I wish to give ownership of a file programmatically to another user (let's call him "server\test" with UID 1008). I'm running with elevated permissions (right click, run as administrator) on...
View ArticleGenerate list of files /Items in a folder
Hi,I have a folder lets say Root. This root folder may have several folders and files.My target is to generate list of all items in this Root folder that list the all folders and items in that...
View ArticleWindows Powershell overwhelming flashdrive
I have a powershell script that I use to copy my ITunes library (700 folders, 5,700 files, 23 GB) and generate playlists to a flash drive for use in my car audio system. My car requires that the...
View Article