How to fix this is who in the picture ?
I use this script in server 2008 R2 for Storing Windows Event Viewer Output in a SQL Server table with PowerShell :
foreach ($server in Get-Content c:tempservers.txt) { $variable = ( Get-EventLog -ComputerName $server -LogName Security -After “22-08-2011“ | select @{Expression={$($server) };Label = “ComputerName“} ,index,TimeGenerated,EntryType,Source,InstanceID,Message ) $valuedatatable = Out-DataTable -InputObject $variable Write-DataTable -ServerInstance YourServer -Database YourDatabase -TableName EventError -data $valuedatatable
the link :
https://www.simple-talk.com/blogs/2011/08/31/storing-windows-event-viewer-output-in-a-sql-server-table-with-powershell/
Well the most obvious thing that stands out is that you are missing a closing "}" for your foreach statement. I would also reformat it to look like this:
foreach ($server in Get-Content c:tempservers.txt)
$variable = ( Get-EventLog -ComputerName $server -LogName Security -After “22-08-2011“ | select @{Expression={$($server) };Label = “ComputerName“} ,index,TimeGenerated,EntryType,Source,InstanceID,Message )
$valuedatatable = Out-DataTable -InputObject $variable
Write-DataTable -ServerInstance YourServer -Database YourDatabase -TableName EventError -data $valuedatatable
I try with your script but dont working and dont Storing Windows Event Viewer Output in a SQL Server table with PowerShell
please check this link Is this
the way a successful ?
https://www.simple-talk.com/blogs/2011/08/31/storing-windows-event-viewer-output-in-a-sql-server-table-with-powershell/
Similar Messages
-
even the navigating tab is just not working , i keep inserting site to go to and it just freezes .
Just reinstall Firefox 7 below is the link.
Firefox 7
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/7.0.1/ -
Does anyone know how to fix this?
Try resetting the device ....
Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
If that didn't help, tap Settings > General > Reset > Reset All Settings
Try the App Store.
No data is lost due to a restore. -
I keep getting the message "unable to authenticate" when trying to sign in to the YouTube app. The website allows me to sign in just fine. Anyone know how to fix this?
Try "resetting" the iPad...
Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.
edited by: cs -
My computer wont recognize my iphone 4. when i plug it into any computer it doesnt charge. i followed the procedure on the website but the device manager still says unknown device. any ideas how to fix this??? the weird thing is it use to work until yesterday. thanks
Will it charge when connected to a wall outlet? The USB port on your computer must be 2.0
Powering Apple and third party peripherals through USB -
My Iphone 4 has been stuck on a loading symbol for a week now, I've plugged it into the computer but can't do anything still because it says I need to put my pass-code in, but I can't the screen is on loading still! Any ideas on how to fix this problem?
On the new laptop, launch iTunes. From the menu bar click Store / Authorize This Computer.
iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer -
All the time slips in the working environment, how to fix this error?
All the time slips in the working environment, how to fix this error?
All the time slips in the working environment, how to fix this error?
-
My ringer volume keeps turning itself up to max and then the volume icon stays on the screen, anyone know how to fix this?
I Have the exact same issue why is there still no fix?!?
-
when trying to enter my wifi password the ipod won't let me enter upper case letters. do you have any ideas on how to fix this ?
Try holding the Capslock key with the letter you want to be capitalized. It should work.
-
ICloud will not sync my contacts or calendar in Mac Office 2011. ICloud does however sync to my PC at work running Microsoft office 2010 and also to my IPad and IPhone. Does anyone know how to fix this?
Welcome to the Apple community.
Unfortunately Office for Mac does not support the correct protocols to work with iCloud. -
Hi all, my external hardrive is no longer being recognized on my Macbook pro after I tried to transfer some documents from another Macbook( that used the Lion operating system) to mine. i'm currently using the Mac OS X 10.6.8. Any suggestions on how to fix this?
I suspect the drive got disconnected, somehow, on that other system and corrupted the drive because of the Disconnection.
Connect it to your system and open Disk Utility and see if the drive is even being seen. If it is all the data on is more then likely lost and it will need to be repartitioned and or just erased and reformatted. -
Upgraded to iOS 6.1.2.
In settings, wifi on/off button is not even clickable.
Can anyone tell me how to fix this?
Thanks.Try the suggestions here to see if they resolve your problem:
http://support.apple.com/kb/ts1559
If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support. -
Im having a problem that started today with no changes to my computer. Every search and link I open now opens in a new window which is extremely aggrivating. Can anyone offer any advice on what happened or how to fix this?
If using the menu bar, or after pressing "Alt" key
Tools > Options > Tabs, (check) Open new window in a new tab instead
Firefox red button > Options (in right column) > Options > Tabs > (check) Open new window in a new tab instead
You can make Firefox 4.0.1 look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)] -
HT1390 Im getting error -50 when trying to download a film? Any idea how to fix this?
Im getting error -50 when trying to download a film? Any idea how to fix this?
Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
iTunes: Advanced iTunes Store troubleshooting -
I keep getting error -1202 when trying to connect to itunes store, any idea how to fix this?
ThanksPerhaps try the iTunes Store loads partially or returns "Error 306" or "Error 10054" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
iTunes: Advanced iTunes Store troubleshooting
Maybe you are looking for
-
How can I set up anApple ID for my 9 years old. Every time I try it tells me he is bolew the min age. If this is the case how can he download free games and how can he redeem his birthday $30 iTunes card? I dont want him to use my ID as it has my cre
-
How to setup Family Sharing iOS 8
Ok, here's a scenario that I'm sure many people will currently be in - a central Apple ID for purchasing App Store items that is shared between family members, and individual Apple ID's for each family member for email, calendar, contacts etc. With i
-
Can I upload photos stored on my simcard to my Mac computer?
I have a memory card in my Convoy 2 phone with photos and possibly some ringtones stored on it. How can I upload those photos/ringtones to my Mac computer? May I also download stuff from my Mac onto the simcard and put it back into the phone?
-
The stock in transit field is not visible in MD04
Hi Team Stock in transit visible on MD04 STPO 28801084 is internal stock transfer from FI25 to FI28. Qty of PO is visible in the ´stock in transit´ field on SAO transaction MD04 under plant FI28 when corresponding delivery 1202400481 have been PGId
-
Infotype 0041 - Date type field in display mode always
Hi All, Please help in find out solution for the below enhancement In infotype 0041 we have date type and date field. We need to make the date type field to be display mode always. Thanks for your help in advance. Thanks, Karthikeyan