BleepingComputer.com: HELP with Possible PowerShell Script/Function

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

HELP with Possible PowerShell Script/Function Useful function if I knew how to make it work

#1 User is offline   Dennis the Menace 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 77
  • Joined: 24-October 08
  • Gender:Male
  • Location:Maryland

Posted 30 December 2009 - 11:03 AM

I found this function while reading about Windows-XP and Windows-7 PowerShell. I am not sure that this is a powershell script but whatever it is, I would really like to know how to make it run. I found a few others of use but need to know how to make use of them.

Does it have to have some unique extention, like .psi? Does it have to be converted in some way?

Where would one type in the name to the function or whatever this is, to make it run?

Thanks to any and all who can provide some insight. Happy New Year 2010!!

Following is the script/function:

function Enable-AutoRun
{
Remove-Item "REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\IniFileMapping\AutoRun.inf" -Force
}

#2 User is offline   Dennis the Menace 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 77
  • Joined: 24-October 08
  • Gender:Male
  • Location:Maryland

Posted 06 January 2010 - 11:28 PM

ADMIN PLEASE CLOSE THIS -- NO RESPONSE -- PERHAPS POSTED IN WRONG PLACE ... TNX ANYWAY

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users