Accessing an xls file
Is there a way to get information from an excel file with out having excel installed on the unit.? A script needs to get translations from an excel file but the test unit may not have excel installed....
View ArticleAll Scripts Stopped working
I had a bunch of scripts that I had working, but ran a windows update and now Powershell 3.0 doesn't run any of the scripts without errors. I spent all day Friday and Saturday building a Windows 2012...
View ArticleLimit of Characters
In Powershell command prompt character length limit is one of the major drawback. Any solution?
View ArticleAdding users to a group based on custom attributes
Team, Have an intresting script i am trying to develop and need guidance. I am trying to automate distribution group membership using custom attributes. Currently i am able to add users to a group...
View ArticleChecking other browsers used
Hello, I am a powershell scripts beginner... I want to check what browsers are used by my users. I made this script below which is correctly running. I just want to check too chrome.exe, safari.exe and...
View ArticleHashdeep script not working properly calling cmd.exe
I am still a n00b at Powershell and have been struggling with a script to to take a command line executable and format it correctly. Here is the exe and parameters G:\directory\hashdeep.exe -r -c...
View ArticleQuery Users with Specific Description, export to CSV, and Include Manager?
I have a script to query AD users with a specific word in their description and export to a CSV file. I am trying to add a manager field to the exported file; however, the manager field contains the...
View Articleencrypt password in script
Hi, is there any way to encrypt a plain password in a ps1 script when the scriptis not running with the user, the encrypted password was created in a txt file? The script is running with Enterprise...
View ArticlePowershell save as and name as variable
Hello,I recently discovered powershell and I am quite impressed with what I can do with it. I found this code online (from this site actually) and need some manipulation to it. $code ='$helper =...
View ArticleFinding Servers on Network Using SSL Certificates
Hello. Recently MS announced that they would no longer support SSL encryption less than 1024. We have some internal servers on our network that have encryption that is less. I need to locate all of...
View ArticleUsing GWMI
Hi,I am using the following to retrieve the version of windows from multiple servers, it works fine, but how can I modify it so that it also lists the server name ? The server names are in the...
View ArticleSharing Credentials Securely with other users for PoSh scripts
I've definitely come by this before on the internet but I can't for the life of me find what I found before... Don Jones has mentioned in one of his workshop videos the ability to write a tool, give it...
View ArticleStart-Transcript output to file only and not to file and console
HelloWhen running a PowerShell script using Start-Transcript with in the script, is it possible stop the console output once Start-Transcript is running.I cannot use powershell.exe -file myfile.ps1...
View ArticleSelect-String question
I am writing a PS Select-String to extract out all SQL SELECT statements from a text file.I am looking extract all SELECT statements. Each SELECT statement terminates with a ; character.I can...
View ArticleLearn Windows PowerShell In a Month of Lunches: 7.4 Pipeline Input...
Hello Don,The example in 7.4 is as follows: Get-Process -name b* | Stop-ServiceIn the explanation, points 6 refers to the -Name parameter of 'Get-Service' and point 7 says that 'Get-Service' will...
View ArticleCan I open notepad etc. on remote server/computer using PS?
Hi guys,I am trying to learn power shell to be more effective at work. Basically I know little bit of Exchange PS cmdlets and small scripts but I want to learn more.What I am trying to figure out is if...
View ArticlePSCustomObject and Select-Object Expandproperty
Hi there!I created the following pscustomobject with a nested pscustomobject. Interestingly after Select-Object -Expandproperty the source object is changed. Do you have an answer on that?# Create...
View ArticleReading SMART attributes of HDD
Hi interested in reading SMART attributes using wmi or powershell
View ArticlePowershell to monitor Keyboard Activity?
HiFew days back read one article stating we can add "Pause" thing in powershell ("Press Any Key To Continue" kind of thing)So i am just wondering to know can we monitor all the keystrokes using...
View ArticleInstall new print drivers
I got the fallowing code but it doesnt do anything and I don't get any errors. Appreciate any help.$Srv = "."$print = ([WMICLASS]"\\$Srv\ROOT\cimv2:Win32_Printer").createInstance()$print.drivername...
View Article