Reply To: Running get-childitem on remote server to check file versions
Don, Thanks again for all the help. Much appreciated. I see the PSComputername when I remove the -ft. What is the bst option to get output to look like a table but by not using -ft? Sorry…Trying to...
View Articlestring manipulation
Location : Name : slave-pos (redirected 2) PrinterState : 0 PrinterStatus : 3 ShareName : SystemName : NWTL-XCHANGE1 Hi I have this text output. I want to use powershell to get only...
View ArticleReply To: string manipulation
Is that actually a string, or is that list output of a PowerShell object? If it’s an object, you’d just do $object.Name . Assuming that this is text in a single string variable (not an array), then...
View ArticleReply To: Discussion: Community Brainstorming: PowerShell Security versus...
Excellent question Dave. I don’t have an effective answer, but i have some ideas. We have an unusual situation with securing Powershell. We need to execute Powershell scripts for genuine SysAdmin...
View ArticleReply To: Discussion: Community Brainstorming: PowerShell Security versus...
I sincerely think, some real security experts should comment on this. I am closer to a n00b level on security.
View ArticleHyper-V cmdlets without Administrator rights
Hi I have a Hyper-V Server (named HV1) where the user UserA is “Hyper-V Administrators”, but not part of the Administrators Group. From another server (SV2), which is virtualized (in another Hyper-V...
View ArticleReply To: Running get-childitem on remote server to check file versions
As I said, pipe the output of Invoke-Command to FT. That way you’ll have the computer name to include.
View ArticleReply To: Best practices on using 32-bit PowerShell on 64-bit and 32-bit systems
The problem was solved by using the Start-Job cmdlet with the -RunAs32 parameter (the most of my use cases are to work on a server (i.e. 64-bit) and call api/cmdlets that support only 32-bit...
View ArticleReply To: Discussion: Community Brainstorming: PowerShell Security versus...
Interesting post, if we look at what is currently out there PowerShell is used by public exploits to facilitate tasks during exploitation, most examples are client side attacks against IE or leveraged...
View ArticleFunction Help: Default param value with pipelining
Basically, the scenario is user is providing a CSV. We’ll say there are two params First and Second. If the user does not provide a Second param in the CSV, the goal is to use the default function...
View ArticleReply To: Function Help: Default param value with pipelining
Try getting rid of the “ValueFromPipeline” attributes, and just stick with ValueFromPipelineByPropertyName.
View ArticleReply To: Function Help: Default param value with pipelining
Ok, that did work. When you use the ValueFromPipeLine, is that insinuating that everything the function will need is coming from the pipleline. I’m trying to understand this behavior so I know when...
View ArticleReply To: Function Help: Default param value with pipelining
Pipeline input works in one of 4 ways (attempted in this order, if I remember correctly): By Value (no coercion), By Property Name (no coercion), By Value (with coercion), By Property Name (with...
View ArticleCredSSP without retyping username/password
Is it a limitation of credSSP which requires users to reenter username/passwords second time? Is there a way around it. I’m trying to make module with bunch of common tasks which will be delegated to...
View ArticleReply To: CredSSP without retyping username/password
It isn’t a limitation so much as a precaution. You’re not meant to have an easy time putting passwords in clear text :). Read through some of the articles listed at...
View ArticleReview Request- How 2 Simplify
Hello All, I originally hopped into the irc channel to find some direction ’cause I couldn’t figure out which way was sideways To help exlpain what I am trying to accomplish, I posted this –...
View ArticleWhat am I doing wrong?
Hello, I’m trying to put subexpressions inside WMI query and it refuses to work. If I put result of my subexpression as plain string then it works just fine. What am I doing wrong? PS C:\Users\a>...
View ArticleReply To: What am I doing wrong?
As a tip, a descriptive subject like “Help with subexpression in WMI query” can help make sure the right folks are looking at your post :). You’re not using a subexpression. Get-WmiObject...
View ArticlePowerShell DSC: Composite Configurations / Node GUID Management
Anyone who has used a DSC pull server(s) knows that you have to associate machines with a GUID in order for the pull process to work. And although generating and configuring GUIDs is a relatively...
View ArticleReply To: Review Request- How 2 Simplify
hi, kind of hard to read and understand your request, however maybe this is something you could work with: $servername = "s002" $remotepath = "c:\temp" $remotefile = "file.txt" $localpath = "c:\temp2"...
View Article