Reply To: ToShortTimeString() vs .Converttodatetime( )
not sure if my conditional statement is on point
View ArticleReply To: ToShortTimeString() vs .Converttodatetime( )
im looking to mark red all computers that didn't reboot @ 11:00
View ArticleReply To: ToShortTimeString() vs .Converttodatetime( )
You should be able to do this: $_.Converttodatetime($_.LastBootUpTime).ToShortTimeString()
View ArticleReply To: ToShortTimeString() vs .Converttodatetime( )
thanks again Dave! really appreciate your help today
View ArticleReply To: ToShortTimeString() vs .Converttodatetime( )
Also, if you query the class using Get-CimInstance, you'll get a DateTime by default. For future posts, please try not to reply to your own post. A lot of us look for "topics without a reply" as a way...
View ArticleReply To: ToShortTimeString() vs .Converttodatetime( )
ok Don Will do ! and thanks for the tip
View ArticleHTML Formatting
The below script works great the only thing I would like to change is the HTML tables that are generated in the .html file are going vertically , is there any way to have the 4 different tables in the...
View ArticleReply To: HTML Formatting
HTML doesn't make it easy to do vertical side-by-side tables. You'd have to get into CSS positioning, which is a little out of scope for here. It'll involve doing some hand-coding of HTML, since...
View ArticleReply To: PowerShell & SCCM 2012
Adam Bertram wrote:I'd create collection with a query on that attribute and then pull members from that collection via Powershell. is there a query that i can run to see all 'Active Directory Sites'...
View ArticleReply To: PowerShell & SCCM 2012
Here's the WQL: select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System...
View ArticleReply To: Using cmdlet dynamically
AH! $params may be the key! Thanks Dave! BTW, I solved that Error,Warning issue. Apparently strings are fine, but I was doing "Error,Warning", not "Error","Warning". Doh! And the coolest part is that...
View ArticleReply To: looking for guidance regarding html reporting
Each time you loop, you need to add a object. You are basically overwriting the properties each time versus adding an additional object. Note the += : $computers = @("Computer1", "Computer2",...
View ArticleReply To: looking for guidance regarding html reporting
thanks for the assistance…. will look into this.. I noticed the "+=" combo during my research into how to do this, but never tried it in this version of the script script. this was the closest I got...
View ArticleReply To: PowerShell & SCCM 2012
You can start with WMI, which is the preferred way SCCM should be remotely queried. If you look at the SMS_R_SYSTEM class, it will return a lot of general client information. Get-WMIObject...
View ArticleDeploying a PowerShell Profile?
Hello, I was wondering if anyone knows of a good way to deploy a default PowerShell profile to a group of machines. I have tried to create a profile on a few remote machines using a PowerShell start...
View ArticleReply To: Deploying a PowerShell Profile?
There are four PowerShell profile scripts: Two for each host (console and ISE). For each host, one script is "current user" and the other is "all users." It should just be a file copy operation,...
View ArticleReply To: Using cmdlet dynamically
Hi! Just to clarify, the name of the variable holding the hashtable is irrelevant. It could be $x = @{} # code to load up paramets in $x Some-Command @x $params just makes the intended use more...
View ArticleDell Business Client BIOS Configuration PowerShell Provider
Has any used this provider before? I'm looking to change the boot up order . The docs are weak this is all they provided ; set-item bootsequence "2,3,4" -password dell123 any help would be appreciated...
View ArticleService configuration stopping with credentials
I am testing a configuration (using PUSH mode) which configures two windows services on a server (along with many other things) including credentials. I have setup a certificate for encrypting the...
View Article