All Questions
5
questions
1
vote
0
answers
148
views
Windows file content indexation via script
I just came across via the following command, but it won't enable Windows file content indexation, as you know this feature allows you to use search to look inside files and see the content of it.
So ...
-2
votes
2
answers
1k
views
Why does this New-Item command work within powershell but not within a ps1 script?
Totally stuck here and have no idea what to do: I've got a multiple choice interactive Powershell script I'm putting together for the ops so they shave off a few minutes whenever they want to perform ...
8
votes
2
answers
14k
views
Powershell Get-ChildItem Include\Exclude - simple script not working properly
Im trying to run the following code as a powershell script,but I cant get it to work. 1st,the following works with one -Include item but I cant seem to get it to work with multiple ones. 2nd, the -...
0
votes
2
answers
176
views
Making PS1 prompt refreshable
I want my prompt to be changed based on an output of a certain command. and based on the command result to add a color.
example:
run the command:
cphaprob stat | grep local | awk '{ print $NF }'`
(...
1
vote
1
answer
9k
views
executing powershell scripts via command prompt - win7
I'm having trouble running a powershell script automatically. When every I call or Execute the script, I get a security prompt requesting I enter "R" to run. I have already set the execution policy to ...