2022-04-10 14:43:47 +0300 | received badge | ● Notable Question (source) |
2022-04-10 14:43:47 +0300 | received badge | ● Famous Question (source) |
2022-04-10 14:43:47 +0300 | received badge | ● Popular Question (source) |
2016-11-23 20:50:04 +0300 | received badge | ● Taxonomist |
2016-11-11 22:49:07 +0300 | received badge | ● Famous Question (source) |
2016-11-11 22:48:59 +0300 | received badge | ● Famous Question (source) |
2016-11-11 22:48:59 +0300 | received badge | ● Notable Question (source) |
2016-11-11 22:48:59 +0300 | received badge | ● Popular Question (source) |
2016-08-05 16:26:47 +0300 | received badge | ● Popular Question (source) |
2016-08-05 16:26:47 +0300 | received badge | ● Famous Question (source) |
2016-08-05 16:26:47 +0300 | received badge | ● Notable Question (source) |
2016-04-19 12:57:43 +0300 | received badge | ● Famous Question (source) |
2016-02-09 11:56:34 +0300 | received badge | ● Famous Question (source) |
2016-02-09 11:56:34 +0300 | received badge | ● Notable Question (source) |
2015-11-09 12:04:48 +0300 | received badge | ● Notable Question (source) |
2015-11-09 12:04:48 +0300 | received badge | ● Famous Question (source) |
2015-07-10 01:48:38 +0300 | received badge | ● Notable Question (source) |
2015-07-10 01:48:38 +0300 | received badge | ● Popular Question (source) |
2015-06-04 18:39:31 +0300 | received badge | ● Notable Question (source) |
2015-06-04 18:37:23 +0300 | received badge | ● Popular Question (source) |
2015-06-02 21:30:44 +0300 | commented answer | cloudbase-init cannot get IE proxy this proxy is from the windows image. I tried to get the proxy manually from powershell command prompt before the script in userdata is run, I can get the proxy successfully. |
2015-06-02 19:45:08 +0300 | commented question | cloudbase-init cannot get IE proxy I added some write-host in my script to print the output of: Get-Itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' and the output is: @{IE5_UA_Backup_Flag=5.0; User Agent=Mozilla/4.0 (compatible; MSIE 8.0; Win32); EmailName=User@; PrivDiscUiShown=1; EnableHttp1_1=1; WarnOnIntranet=1; MimeExclusionListForCache=multipart/mixed multipart/x-mixed-replace multipart/x-byteranges ; AutoConfigProxy=wininet.dll; UseSchannelDirectly=System.Byte[]} but when the output when I ran it manually from powershell command prompt is: @{IE5_UA_Backup_Flag=5.0; User Agent=Mozilla/4.0 (compatible; MSIE 8.0; Win32); EmailName=User@; PrivDiscUiShown=1; Enab leHttp1_1=1; WarnOnIntranet=1; MimeExclusionListForCache=multipart/mixed multipart/x-mixed-replace multipart/x-byterange s ; AutoConfigProxy=wininet.dll; UseSchannelDirectly=System.Byte[]; WarnOnPost=System.Byte[]; UrlEncoding=0; SecureProto cols=160; PrivacyAdvanced=0; ZonesSecurityUpgrade=System.Byte[]; DisableCachingO |
2015-06-02 19:44:36 +0300 | answered a question | cloudbase-init cannot get IE proxy I added some write-host in my script to print the output of: Get-Itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' and the output is: @{IE5UABackupFlag=5.0; User Agent=Mozilla/4.0 (compatible; MSIE 8.0; Win32); EmailName=User@; PrivDiscUiShown=1; EnableHttp11=1; WarnOnIntranet=1; MimeExclusionListForCache=multipart/mixed multipart/x-mixed-replace multipart/x-byteranges ; AutoConfigProxy=wininet.dll; UseSchannelDirectly=System.Byte[]} but when the output when I ran it manually from powershell command prompt is: @{IE5UABackupFlag=5.0; User Agent=Mozilla/4.0 (compatible; MSIE 8.0; Win32); EmailName=User@; PrivDiscUiShown=1; Enab leHttp11=1; WarnOnIntranet=1; MimeExclusionListForCache=multipart/mixed multipart/x-mixed-replace multipart/x-byterange s ; AutoConfigProxy=wininet.dll; UseSchannelDirectly=System.Byte[]; WarnOnPost=System.Byte[]; UrlEncoding=0; SecureProto cols=160; PrivacyAdvanced=0; ZonesSecurityUpgrade=System.Byte[]; DisableCachingOfSSLPages=0; WarnonZoneCrossing=0; Certi ficateRevocation=0; EnableNegotiate=1; GlobalUserOffline=0; MigrateProxy=1; ProxyEnable=1; ProxyServer=https=xxxxxxxxxx:80; ProxyOverride=localhost; EnableAutodial=0; NoNetAutodial=0; ProxyHttp1.1=1; ShowPunycode=0; EnablePunyc ode=1; DisableIDNPrompt=0; EnforceP3PValidity=0; WarnonBadCertRecving=0; WarnOnPostRedirect=0} |
2015-06-02 18:35:47 +0300 | asked a question | cloudbase-init cannot get IE proxy hello, I need to download some software behind proxy when launching the windows instance. I found cloudbase-init reported no proxy in cloudbase-init.log. Then I tried to launch another windows instance. I tried to get the proxy before the userdata was run and I got the proxy correctly. Then how can I solve this problem? Thanks a lot. |
2015-05-05 21:41:57 +0300 | received badge | ● Popular Question (source) |
2015-05-01 00:53:13 +0300 | asked a question | multiple powershell scripts need parameters I checked the samples from: https://github.com/openstack/heat-tem... I can find when multiple scripts needed in userdata, we can use OS::Heat::MultipartMime. but it seems only one script can have parameters. If multiple scripts need parameters, how to make it work? Thanks a lot |
2015-05-01 00:16:59 +0300 | commented answer | How to pass parameters to powershell script in userdata? I found the sample which can run multiple powershell scripts from the above url. Thx |
2015-04-30 19:35:38 +0300 | received badge | ● Enthusiast |
2015-04-28 18:34:12 +0300 | commented answer | How to pass parameters to powershell script in userdata? Thanks a lot. It works now. ANother question: if I need to run several powershell scripts and each of them needs some parameters, what's the correct format to do that? Thanks again |
2015-04-27 22:32:21 +0300 | asked a question | How to pass parameters to powershell script in userdata? My heat template is like: test1.ps1 : But cloudbase-init.log reported: executeuserdatascript C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\plugins\windows\userdatautils.py:58 2015-04-27 18:40:06.905 1788 DEBUG cloudbaseinit.plugins.windows.userdatautils [-] Userdata stderr: The term 'param' is not recognized as the name of a cmdlet, function, script fi le, or operable program. Check the spelling of the name, or if a path was inclu ded, verify that the path is correct and try again. At C:\Users\cloudbase-init\appdata\local\temp\6ea2afb5-645b-430c-91a2-a67c3201f 5db.ps1:7 char:7 param <<<< ([String]$src, [String]$dest) CategoryInfo : ObjectNotFound: (param:String) [], CommandNotFou ndException FullyQualifiedErrorId : CommandNotFoundException So what is the correct way to pass parameter to a powershell script using heat template? |
2015-04-27 22:13:22 +0300 | asked a question | How to pass parameters to powershell script in userdata My heat template is like: windowsinstance: type: OS::Nova::Server properties: image: {getparam: imagever } flavor: m1.large keyname: test networks: - port: { getresource: publicport } userdataformat: RAW userdata: strreplace: template: | #ps1 downloadaat.ps1 : param([String]$uiaatsrc, [String]$uiaattarget) Write-Host "url is:" + $uiaatsrc write-host "dest is:" + $uiaattarget But cloudbase-init.log reported: executeuserdatascript C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\plugins\windows\userdatautils.py:58 2015-04-27 18:40:06.905 1788 DEBUG cloudbaseinit.plugins.windows.userdatautils [-] Userdata stderr: The term 'param' is not recognized as the name of a cmdlet, function, script fi le, or operable program. Check the spelling of the name, or if a path was inclu ded, verify that the path is correct and try again. At C:\Users\cloudbase-init\appdata\local\temp\6ea2afb5-645b-430c-91a2-a67c3201f 5db.ps1:7 char:7
So what is the correct way to pass parameter to a powershell script using heat template? |
2015-04-27 21:04:48 +0300 | commented question | parse error for the parameters in powershell script I checked and found I am using cloudbase-init 1.0.0.0. is this the latest version? |
2015-04-27 20:26:52 +0300 | commented question | parse error for the parameters in powershell script The script is like: param([String]$urlsrc, [String]$dest) $webclient = New-Object System.Net.webclient $testcode1 = $webclient.downloadstring($urlsrc) -split "\<a\s+" $allsnapshots="$testcode1" |="" select-string="" "\(?<="\">\)(\d+)(.*)SNAPSHOT(?=\/\<)" -allmatches | % { $_.matches } | % { $_.value } |get-unique |sort -descending |
2015-04-27 18:05:33 +0300 | asked a question | parse error for the parameters in powershell script I have one script which accepts two parameters: param([string] $urlsrc,[string]dest) But when I try to launch the windows VM using heat template, cloudbase-init.log reported: executeuserdatascript C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\plugins\windows\userdatautils.py:58 2015-04-27 13:53:19.530 1788 DEBUG cloudbaseinit.plugins.windows.userdatautils [-] Userdata stderr: Parameter declarations are a comma-separated list of variable names with option al initializer expressions. At line:2 char:10
I can run the script successfully from powershell command prompt. Could you pls tell me how to fix it? Thanks a lot |
2015-04-27 10:33:19 +0300 | received badge | ● Popular Question (source) |
2015-04-24 06:00:32 +0300 | asked a question | one parse error when run a powershell regex from userdata hello, I have one powershell script that I can run successfully directly from powershell command prompt. But when I try to run it from userdata, it always failed because of parse error: + $allsnapshot=$testcode1 -split "<a\s+" |="" select-string="" "(?<="\>" <<<<="" )(\d+)(.<="" p=""> *)SNAPSHOT(?=\/\<)" -allmatches | % { $.matches } | % { $.value } |get-uniqu e |sort -descending ndException The script is: $allsnapshot=$testcode1 -split "<a\s+" |="" select-string="" "(?<="\>)(\d+)(.*)SNAPSHOT(?=\/\<)"" -allmatches="" |="" %="" {="" $<em="">.matches } | % { $.value } |get-unique |sort -descending I also tried single quotes but the same error. Could you pls tell me how to fix this? Thanks a lot |
2015-04-19 01:56:55 +0300 | received badge | ● Self-Learner (source) |
2015-04-19 01:56:55 +0300 | received badge | ● Teacher (source) |
2015-04-17 23:02:30 +0300 | answered a question | how to provide a parameter to s powershell script in userdata I know how to do it: powershell -command "setupenv.ps1 http://...." |
2015-04-17 22:24:54 +0300 | asked a question | how to provide a parameter to s powershell script in userdata I tried to launch a windows stack using heat template. the userdata is powershell script created by myself . I tried: setupenv.ps1 -specificurl "http://...." setupenv.ps1 "http://....." but neither works my script is like: param([String]specificurl) (new-object System.Net.WebClient).DownloadFile($specificurl,"C:\temp") Could you pls tell me how to pass the parameter to the script in userdata? Thanks a lot |
2015-04-10 22:03:13 +0300 | answered a question | how to run cloudbase-init manaully? Thanks a lot |
2015-04-10 20:46:39 +0300 | asked a question | how to run cloudbase-init manaully? Hello, Is it possible to run the cloudbase-init manually so I can debug my userdata without launching a new windows instance? ANd how? Thanks a lot |
2015-04-10 20:45:55 +0300 | asked a question | Is it possible to run cloudbase-init manually on windows instance? Hello, Is it possible to run the cloudbase-init manually so I can debug my userdata without launching a new windows instance? ANd how? Thanks a lot |