当前位置: 首页 > >

ʹÓÃÈÎÒâÉ豸µÄä¯ÀÀÆ÷·ÃÎÊÇ¿´óµÄPowerShell

发布时间:

Windows Server 2012µÄÇ¿´óÖ®´¦È·ÊµÊǺÜÁîÈËÕ𾪣¬Ö®Ç°¿´µ½·¢²¼»á˵Windows Server 2012½öÔÚHyper-VÉϾÍÔö¼ÓÁËÉÏǧÌõPowershell cmdlet£¬È·ÊµºÜÁîÈËÐË·Ü¡£ËäÈ»£¬Ëµ¾äʵ»°Powershell¸Õ³öÀ´µÄʱºòÎÒ¸ù±¾²»ÖªµÀÊÇʲÂíÍæÒ⣬µ«¼´±ãµ½ÏÖÔÚÎÒÒ²½ö½öÊÇ»áPowerShellµÄ±ùɽһ½ÇµÄÒ»½Ç£¬ÒòΪPowershellµÄÇ¿´ó£¬ÊÇÎÒûÓа취¹ÀÁ¿µÄ¡£¶ø½ñÌ죬Ҫ¸ø´ó¼Ò´øÀ´µÄ²¢²»ÊÇPowerShell£¬¶øÊÇWindows Server 2012ÁíÍâÒ»¸öÇ¿´óµÄ¹¦ÄÜ£¬µ±È»¿Ï¶¨ÊÇPowerShellÓйصģ¬·ñÔòÎÒÒ²²»»áÔÚÇ°Ãæ·Ï»°Õâô¶àPowerShell¡£


ÄÇÊÇʲôÄØ£¿ÄǾÍÊÇPowerShell Web·ÃÎʹ¦ÄÜ£¬Ò²¾ÍÊÇ˵ÎÒÃÇ¿ÉÒÔÔÚÈÎÒâλÖÃʹÓÃä¯ÀÀÆ÷À´Ê¹ÓÃÎÒÃǵÄPowerShell cmdlet¡£ÕâÑù¿ÉÒÔ¸Éʲô£¿ÕâÑùÎÒÃǼ¸ºõ¿ÉÒÔ¸ÉÔÚ·þÎñÆ÷ÏÔʾÆ÷ÃæÇ°Ïë×öµÄ¼¸ºõËùÓÐÊÂÇ飬ÕâÒ²ÊÇPowerShellµÄÇ¿´óÖ®´¦¡£ºÃÁË£¬ÏÂÃæ·Ï»°¾Í²»¶à˵ÁË£¬ÊÇ¿ÊÇÂíÀ­³öÀ´ÁïÏ£¬´ó¼Ò¶¼¶®ÁË¡£


Ê×ÏÈÎÒÃÇ´ò¿ªÎÒÃÇÒª·¢²¼PowerShellµÄ·þÎñÆ÷£¬ÈÎÒâ·þÎñÆ÷¶¼¿ÉÒÔ£¬ÒòΪÎÒÃÇ·¢²¼µÄPowerShellÊÇ¿ÉÒÔ×Ô¶¨ÒåÁ¬½Óµ½ÄĄ̈·þÎñÆ÷Éϵģ¬ËùÒÔ²»Ò»¶¨ÐèÒªÔڹؼüµÄ·þÎñÆ÷ÉÏ×ö²Ù×÷£¬¿ÉÒÔÖ±½ÓÔÚÎÒÃǵÄÍø¹Ø·þÎñÆ÷ÉϽøÐм´¿É¡£Õâ¸ö¹¦ÄÜÒ쳣ǿ´ó£¬Èç¹ûÒªÕë¶ÔInternet¿ª·Å£¬Ç§ÍòҪעÒⰲȫ£¬·ñÔò¿ÉÄÜÇã¼Òµ´²ú£¡


ÔÚ·þÎñÆ÷¹ÜÀíÆ÷Öе¥»÷¡°¹ÜÀí¡±-¡°Ìí¼Ó½ÇÉ«ºÍ¹¦ÄÜ¡±¡£





È»ºóÎÒÃÇÐèҪѡÔñ°²×°ÀàÐÍ£¬ÕâÀïÑ¡ÔÚ¡°»ùÓÚ½ÇÉ«»ò»ùÓÚ¹¦Äܵݲװ¡±¡£





È»ºóÑ¡Ôñ·þÎñÆ÷¡£





Ö±½ÓÌø¹ýÌí¼Ó·þÎñÆ÷½ÇÉ«½çÃ棬µ¥»÷ÏÂÒ»²½¡£





ÔÚÑ¡Ôñ¹¦ÄÜλÖã¬ÎÒÃÇÕ¹¿ªÒѾ­°²×°ºÃµÄ¡°Windows PowerShell¡±£¬È»ºó¸´Ñ¡¡°Windows PowerShell Web·ÃÎÊ¡±£¬µ¥»÷ÏÂÒ»²½¡£





ÕâÀï²»ÐèÒª×Ô¶¯Ö*ô£¬µ¥»÷¡°°²×°¡±¡£





ÉÔ´ýƬ¿Ì¾ÍOKÁË£¬µ¥»÷¹Ø±Õ¡£





È»ºóÔÚÅäÖÃ֮ǰ£¬ÎÒÃÇÐèÒªÒ»¸ö·þÎñÆ÷Éí·ÝÑéÖ¤Ö¤Êé¡£ÕâÀïÒòΪÎÒÊÂÏÈ×¼±¸ºÃÁË·þÎñÆ÷Ö¤Ê飬Èç¹ûûÓÐ×¼±¸Ö¤ÊéµÄ»°£¬ÓÐÁ½ÖÖ·½Ê½£¬µÚÒ»ÖÖ¾ÍÊÇÕÒCAÉêÇ룬µÚ¶þÖÖ¾ÍÊÇ´´½¨Ò»¸ö×Ô½¨µÄÖ¤Êé¡£Èç¹ûÊÇ´´½¨×Ô½¨µÄÕâʱÎÒÃÇÒÔ¹ÜÀíÔ±Éí·ÝÔËÐÐPowerShell£¬È»ºóÊäÈëÒÔÏÂcmdlet£º


Install-PswawebApplication


Èç¹ûûÓÐÖ¤ÊéµÄ»°ÊäÈ룺


Install-PswawebApplication -UseTestCertificate


ÕâÌõcmdlet»á´´½¨Ò»¸ö×Ô½¨Ö¤Êé¡£





OKÖ®ºó£¬ÎÒÃÇ´ò¿ªIIS£¬Õ¹¿ª·þÎñÆ÷-ÍøÕ¾£¬Ñ¡ÔñĬÈÏÍøÕ¾£¬µ¥»÷ÓÒ²àµÄ¡°°ó¶¨¡±¡£





È»ºóÔÚ¡°ÍøÕ¾°ó¶¨¡±¶Ô»°¿òÑ¡Ôñhttps£¬²¢µ¥»÷¡°±à¼­¡±°´Å¥¡£





È»ºóÔÚÕâÀïÎÒÃÇÑ¡ÔñÒ»¸öSSLÖ¤Ê飬µ¥»÷¶à´ÎÈ·¶¨£¬¹Ø±ÕIIS¹ÜÀíÆ÷¡£





¸ã¶¨ºó£¬ÎÒÃǾͿÉÒÔͨ¹ý£º


https:///pswa


·ÃÎÊÎÒÃǵÄPowerShell Web½çÃæÁË¡£Èç¹ûÊÇ×Ô½¨µÄÖ¤Ê飬֤ÊéÊÇδ¾­ÈÏÖ¤µÄ£¬ËùÒÔ»áÌáʾ֤Êé´íÎó£¬Ñ¡Ôñ"¼ÌÐøä¯ÀÀ´ËÍøÕ¾£¨²»ÍƼö£©"¼´¿É¡£





µ«ÊÇÏÖÔÚÎÒÃÇÊÇûÓа취µÇ¼µÄ£¬ÒòΪÎÒÃÇÏÖÔÚ»¹Ã»ÓÐÊÚȨÈκÎÓû§Äܹ»Í¨¹ýPSWAʹÓÃPowerShell¡£


ÎÒÃÇÐèҪʹÓÃAdd-PswaAuthorizationRule cmdletÏò Windows PowerShell Web ·ÃÎÊ ÊÚȨ¹æÔò¼¯Ìí¼ÓеÄÊÚȨ¹æÔò¡£´ËcmdletÖ§³ÖÒÔϲÎÊý£º


ComputerGroupName


ComputerName


ConfigurationName


RuleName


UserGroupName


UserName


ÎÒÃÇÀ´ÔËÐÐÒ»¸ö¼òµ¥µãµÄ£¬Ìí¼ÓÒ»Ìõ°²È«¼¶±ð±È½ÏµÍµÄ¹æÔò£º


Add-PswaAuthorizationRule -ComputerName * -UserGroupName "domaindomain group" -Configuration *


ÎÒÀ´¼òµ¥µÄ½âÊÍÏÂÕâÌõÃüÁ ComputerNameÖ¸µÄÊÇ·ÃÎÊPSWAµÄ¼ÆËã»úÃû³Æ£¬¶ø²»ÊDZ»PSWAµÄ¼ÆËã»úÃû³Æ£¬ÎÒÃÇÕâÀïʹÓõÄÊÇ¡°*¡±¼´¿ÉÒÔʹÓÃÈκμÆËã»úÀ´·ÃÎÊʹÓÃPSWA£»UserGroupNameÖ¸µÄÊÇÔÊÐíʹÓÃPSWAµÄÓû§×飬µ±È»Ò²¿ÉÒÔÖ±½ÓÖ¸¶¨Óû§£¬Ê¹ÓÃUserName²ÎÊý¼´¿É£»×îºóµÄConfigurationÊÇÖ¸¿ÉÒÔÒÔʲôÉí·ÝÔËÐÐPowerShell£¬ÎÒÃÇÕâÀïµÄ¡°*¡±Ö¸µÄÊÇÈκÎÉí·Ý£¬¼´¿ÉÒÔ½øÐÐËùÓÐcmdletµÄ²Ù×÷¡£





Èç¹ûÎÒÃÇÌõ¼þ´íÁË£¬¿ÉÒÔͨ¹ýRemove-PswaAuthorizationRuleÀ´´Ó Windows PowerShell Web ·ÃÎÊ ÖÐɾ³ýÌض¨µÄÊÚȨ¹æÔò£¬²ÎÊý°üÀ¨ IDºÍRuleName¡£


ÕâÀïÎÒÃÇÔÙ¿´ÏÂGet-PswaAuthorizationRule cmdlet£¬Ö´ÐдËÃüÁî·µ»ØÖ¸¶¨ID»ò¹æÔòÃûµÄ Windows PowerShell Web ·ÃÎÊÊÚȨ¹æÔò¡£µ±²»Óë²ÎÊý½áºÏʹÓÃʱ£¬cmdlet ½«·µ»ØËùÓйæÔò¡£





¸ã¶¨Ö®ºó£¬ÎÒÃǾÍͨ¹ýhttps:///pswa À´·ÃÎÊһϰѣ¬Óû§ÃûΪdomainusername£¬Á¬½ÓÀàÐÍ°´Ä¬ÈϵļÆËã»úÃû¼´¿É£¬ÊäÈë¼ÆËã»úÃû¡¢µ¥»÷µÇ½¼´¿ÉÁ¬½Ó¡£





Èç¹ûƾ¾ÝÕýÈ·£¬¼´¿É´ò¿ªÍøÒ³°æµÄPowerShell£¬ÓÉÓÚÉÏÃæµÄ¹æÔò£¬ÎÒÃÇ¿ÉÒÔʹÓÃÈÎÒâcmdlet¡£





±ÈÈçÕâÀïÎÒÖ´ÐÐÒ»ÌõGet-VM£¬»áÏÔʾ³öµ±Ç°·þÎñÆ÷ÖÐËùÓеÄÐéÄâ»ú¡£





×îºóÎÒÃÇÒ»Æð¿´ÏÂÊÜÖ§³ÖµÄä¯ÀÀÆ÷ºÍ¿Í»§¶ËÉ豸£º


?


Windows PowerShell Web ·ÃÎÊ Ö§³ÖÒÔÏ Internet ä¯ÀÀÆ÷¡£ËäÈ»Òƶ¯ä¯ÀÀÆ÷δÕýʽÊܵ½Ö§³Ö£¬µ«Ðí¶à´ËÀàä¯ÀÀÆ÷¾ù¿ÉÔËÐлùÓÚ Web µÄ Windows PowerShell ¿ØÖÆ̨¡£ÆäËû½ÓÊÜ Cookies¡¢ÔËÐÐ JavaScript ºÍ HTTPS ÍøÕ¾µÄä¯ÀÀÆ÷ÓÐÍûͶÈëʹÓ㬵«ÉÐδ½ÓÊÜÕýʽ²âÊÔ¡£


ÊÜÖ§³ÖµĄ̈ʽ¼ÆËã»úä¯ÀÀÆ÷


Microsoft Windows(R) 8.0¡¢9.0 ºÍ 10.0 µÄ Windows(R) Internet Explorer(R) Mozilla Firefox(R) 10.0.2 Windows µÄ Google Chrome(TM) 17.0.963.56m Apple Safari(R) 51.1.2

¾­¹ý×îСÏ޶ȲâÊÔµÄÒƶ¯É豸»òä¯ÀÀÆ÷


Windows Phone 7 ºÍ 7.5 Google Android WebKit 3.1 Browser Android 2.2.1 (Kernel 2.6) iPhone ²Ù×÷ϵͳ 5.0.1 µÄ Apple Safari iPad 2 ²Ù×÷ϵͳ 5.0.1 µÄ Apple Safari

ä¯ÀÀÆ÷ÒªÇó



ÈôҪʹÓà Windows PowerShell Web ·ÃÎÊ »ùÓÚ Web µÄ¿ØÖÆ̨£¬ä¯ÀÀÆ÷±ØÐëÖ´ÐÐÒÔϲÙ×÷£º

ÔÊÐí´Ó Windows PowerShell Web ·ÃÎÊ Íø¹ØÍøÕ¾´ò¿ª cookies¡£ ¿É´ò¿ªºÍ·ÃÎÊ HTTPS Ò³Ãæ¡£ ´ò¿ªºÍÔËÐÐʹÓà JavaScript µÄÍøÕ¾¡£


相关推荐


友情链接: