Search found 15436 matches
- Thu Nov 20, 2014 12:09 pm
- Forum: PowerShell
- Topic: Why does this not display the results in the output window
- Replies: 32
- Views: 15487
Re: Why does this not display the results in the output wind
For backgriyund on how to use Controls to build useful interfaces with Windows Forms start here: http://www.sapien.com/blog/topics/user- ... istrators/
- Thu Nov 20, 2014 11:41 am
- Forum: PowerShell
- Topic: Why does this not display the results in the output window
- Replies: 32
- Views: 15487
Re: Why does this not display the results in the output wind
I am sorry but the Out-String and focus do nothing. I do not know what you think is doing that but those lines are not assigning anything.
<control>.focus() moves the input focus to the specified counrol.
THe line Out-String does nothing.
<control>.focus() moves the input focus to the specified counrol.
THe line Out-String does nothing.
- Wed Nov 19, 2014 3:41 pm
- Forum: PowerShell
- Topic: Why does this not display the results in the output window
- Replies: 32
- Views: 15487
Re: Why does this not display the results in the output wind
It isn't being written to a file, the last part of the code, Out-String $results.Focus() tells it to display in the text box called results. As my question stated, if I changed this to write to a file it worked, but when it is set to display in the text window it gives nothing. That does nothing. I...
- Wed Nov 19, 2014 10:35 am
- Forum: PowerShell
- Topic: Why does this not display the results in the output window
- Replies: 32
- Views: 15487
Re: Why does this not display the results in the output wind
How is it going to display if you are writing it to a file?
- Wed Nov 19, 2014 10:04 am
- Forum: PowerShell
- Topic: Why does this not display the results in the output window
- Replies: 32
- Views: 15487
Re: Why does this not display the results in the output wind
$IDSearchButton_OnClick= { $samName=$EntryBox.text if($userData=Get-ADUser -Filter "sAMAccountName -eq '$samName'" -Properties DisplayName, sAMAccountName, mail, lastlogondate, extensionattribute5, PasswordLastSet, PasswordExpired, PasswordNeverExpires, buMemberOf, msExchOmaAdminWirelessE...
- Tue Nov 18, 2014 8:40 am
- Forum: PowerShell
- Topic: loop query through all DCs
- Replies: 7
- Views: 4066
Re: loop query through all DCs
Sorry the parameter should be -server.
- Mon Nov 17, 2014 8:14 pm
- Forum: PowerShell GUIs
- Topic: USMT backup powershell script
- Replies: 18
- Views: 8742
Re: USMT backup powershell script
I have no idea what you have in mind. What two scripts are you talking about?
- Mon Nov 17, 2014 1:44 pm
- Forum: PowerShell
- Topic: loop query through all DCs
- Replies: 7
- Views: 4066
Re: loop query through all DCs
$userid='samname' $logons=@() [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain().DomainControllers | ForEach{ $logonInt=(Get-Aduser $userid -computer $_.Name -properties lastlogon).lastlogon $logons+=[datetime]::FromFileTime($logonInt) } $newestLogon=($logons|Measure-Object -Max)...
- Mon Nov 17, 2014 1:22 pm
- Forum: PowerShell
- Topic: loop query through all DCs
- Replies: 7
- Views: 4066
Re: loop query through all DCs
You just loop through all of the DCs and get the time. Compare until you get the latest time.
Some background:
http://oxfordsbsguy.com/2014/04/28/powe ... te-part-1/
Some background:
http://oxfordsbsguy.com/2014/04/28/powe ... te-part-1/
- Mon Nov 17, 2014 11:38 am
- Forum: PowerShell GUIs
- Topic: Seeking tips on acquiring output in forms.
- Replies: 8
- Views: 3987
Re: Seeking tips on acquiring output in forms.
My question is not what is the answer, it is how do you get the answer? How did you know $datagridview1.SelectedRows[0].Cells[0].Value is what we're looking for without any useful output of $datagridview1.SelectedRows[0]? I read thedocumentaion for the control. http://msdn.microsoft.com/en-us/libra...