Eventlog to Excel problems
Hi all, I am new to Powershell so any help really appreciated.I am trying to enter some event log errors to a single excel cell. I have no control of the layout of the spreadsheet so I am tied to...
View ArticleConcatenate strings and variables
simple concatenation$a = "ThisIsA"echo "=======" + $a + "=======" gives me +========+ThisIsAI want ========ThisIsA========I tried several forms of the join operator. I tried taking out the +. I...
View ArticlePowershell Text Manipulation Against Robocopy
Hello,I am using robocopy and would like to do a through analysis of the log file rather than on the robocopy exit codes... not sure if anyone has any better ideas.robocopy c:\testpath\test\downloads...
View ArticleGet count before and after cleanup
How can I get just counts of the files it removes and add multiple file type's in filter.Filter: *.trn and *.bak Output in LOG file desired after Date Time STuff. Transaction Logs cleaned --- #...
View ArticleExport a list Shares & NTFS permissions
I would like a script or tool which can create a list of server shares, along with the relevant NTFS permissions on the directory structure and exports to either a .txt or .csv. Full group and member...
View Articleso if i got this v1,0 (june-11-2013) thing and miss the feed what do i do ?
i can,t do my update because of this core issue and i" not that tec savvie oh i think i just found what to do
View Articlehow check Powershell Version ?
Hi...allI installed SQL Server 2008 Dev edition on XP sp3.(It Installs WPS)I am very much new to PS..I started testing my Installation.For example, I typed Get-PS and press the Tab key , the following...
View ArticleAD-search-ADAccount -accountinactive -timespan 90 capturing active accounts?
Hi,I run the above command to get the accounts that have been inactive for over 90 days in our domain, but its sometimes returning accounts that have logged in only a few weeks ago.Does anyone know why...
View ArticleMonitoring Event in Powershell
How to Monitor Specific Event ID's from Powershell.Im monitoring a specific event and I want to create a powershell script that will email to my department if that event id make an entry in the...
View ArticleHow to check if a word file have a password?
Hello,I built a script that converter doc file to docx,But I had a problem that there is doc file with a password that i can't access them and then the script hang.I look for option that check if the...
View ArticleScript to execute exe and collect hardware details from the list of servers
Hi allI want to take hardware details from list of windows servers by running some exe.Thanks in advance
View ArticleGet-Free Disk Space by IP for DMZ/Different Network Servers
hello, Is it possible to have a script that generates the free disk space in servers by IP instead of Names?I'm facing difficulties to have the below script fetch the disk details from different...
View ArticleRemoving the "Directory" attribute
Is it possible to remove the "Directory" attribute using powershell? The reason I ask is there has been an ongoing issue with certain Western Digital devices for several years where files...
View ArticleCannot find an overload for "CommonSecurityDescriptor" and the argument...
Hey People,I've got a short piece of PowerShell that I've converted from C#, but for whatever reason, it's not finding the 7 argument overload of CommonSecurityDescriptor when I call it. I'm using...
View ArticleParse Log File
We are using the Microsoft Malicious Software Removal Tool and it creates an MRT.log file on a network share on the server.I need a script to parse all the logs (500+) and see if it can match any...
View ArticleError in execution of PowerShell C# codings
Hi,I have difficulty creating new virtual machine. I always get this error when invoking the powershell codes:An exception of type 'System.Management.Automation.ParameterBindingException' occurred in...
View ArticleCreate shortcut using powershell
Hi, Can anyone tell me a wat to create RDP shortcuts using powershell?I have written a script for mountpoints where in it compares the mountpoints with the mounpoints in the text filefor Ex:- $volume=...
View ArticleScript misbehaving when scheduled
hi all,so i created the bottom half of the script. when run in interactive mode its fine. it groups the files in one zip file where the last modified date is in the same day. my problem is when i...
View ArticleAD PowerShell: Difference between Search-ADAccount and Get-ADComputer
I have been working with some scripts to search for and delete stale AD Computers in our domain that have not logged in or been inactive for 180 days. I have tried both Search-ADAccount and...
View ArticleWorking with Powershell Objects?
I've been looking for an answer to this for a while.I'm using powershell to return information that I need to work with. The Script returns a hashtable. However I can't seem to get to the data in the...
View Article