FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
shell Defaulting Power Shell's "elevation" mode (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: shell Defaulting Power Shell's "elevation" mode
#10561
Mac (Visitor)
Click here to see the profile of this user
Birthdate:
shell Defaulting Power Shell's "elevation" mode  
We've just got a new Windows 2008 RTM Server setup and are trying to install our ASP.NET application which uses a Power Shell _script_ that calls IIS 7.0's AppCMD command to nuke/pave the site's setup.  At the end of the install _script_ we issue start commands to the AppPools and Sites we created.  We also make sure some other services (e.g. aspnet_state) are running before the install finishes.  This has all be working fine while running on Beta versions of Windows 2008 servers. The issue we're running into with the release version of Windows 2008, is it seems for any start service (or worker process) command to work (e.g. net start <service, Start-Service <service, AppCMD start site MySite), the shell you run it in (e.g. Power Shell or Command) has to be run in elevated mode.  If we were to run this _script_ manually, we could Right Click on Power Shell and say Run as Administrator.  But we call this install _script_ remotely through a mass deployment process. Does anyone know of a way to force Power Shell to run elevated when we call our _script_ remotely?  Basically I don't want to worry about having to specify that hey Windows 2008, I want to run the command in an 'elevated' shell so I can make sure services are started.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#10562
Jon (Visitor)
Click here to see the profile of this user
Birthdate:
shell Defaulting Power Shell's "elevation" mode  
If the main installer for your application runs elevated (which it will do automatically if it's an executable named something like setup.exe, install.exe etc) then any Powershell process it launches will also run elevated by default.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#10563
Mac (Visitor)
Click here to see the profile of this user
Birthdate:
shell Defaulting Power Shell's "elevation" mode  
If the main installer for your application runs elevated (which it will do automatically if it's an executable named something like setup.exe, install.exe etc) then any Powershell process it launches will also run elevated by default.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#10564
Mac (Visitor)
Click here to see the profile of this user
Birthdate:
shell Defaulting Power Shell's "elevation" mode  
If the main installer for your application runs elevated (which it will do automatically if it's an executable named something like setup.exe, install.exe etc) then any Powershell process it launches will also run elevated by default.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#10565
Jon (Visitor)
Click here to see the profile of this user
Birthdate:
shell Defaulting Power Shell's "elevation" mode  
This most likely is in violation of all security principals, but we ended up turning off User Account Control.  This could be just my callowness with Windows 2008, but UAC seems to be far more confusing that helpful so far. It takes a while to get used to, but it would probably violate even more security principles were I to show how to run powershell _script_s elevated with no UAC prompts when UAC prompts are enabled  - but there's nothing to stop you setting up your systems to best suit your particular usage, as you've done so.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#10566
shell Defaulting Power Shell's "elevation" mode  
You can use SchTasks.exe to run an app elevated without prompting as long as A) you're a member of the administrators group, and you create a (unscheduled) scheduled task first ... which requires you to elevate. http://huddledmasses.org/vista-setuid-how-to-elevate-without-prompting/
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


-----------------------------------------------------------------------------------------------------------------------------------
To open and print manuals use Adobe Reader. You can download it from Adobe's site. Click here to dlownload Adobe Reader.


COPYRIGHT 2007 MANUALS-LIBRARY - THE LARGEST ONLINE MANUSALS DOWNLOAD SOURCE
pozycjonowanie - Kanu polen - Quote wanted - celebrity hairstyles - texts of songs - detox - Art Gallery - mp3 songs download - Free coloring pages - Link Bid - youtube download - prepaid phone card - Krakow airport transfers - Web Directory - mp3 album download
Get Free Stuff
Search Exchange Web Portal SpyderMap
tanie wakacje w Turcji, Egipcie, Tunezji, Grecji, BuƂgarii | toptrainers.pl mapa | soczewki | Polityka | frex | gookeer | minhnut | Kamocki | Polityka | GKS BeƂchatĂłw | gry edukacyjne | Gloria victis | Amica Wronki | Idealne nawigacje satelitarne, GPS, samochodowe to nawigacje kutno | Turystyka Ostrzyce Miejscowoƛć muzykunia na y domeny Ć»yczenia boĆŒonarodzeniowe bilety lotnicze free bingo Moda Modny portal Fotografowanie Pozycjonowanie