Page 1 of 1

I still cant register my product....

Posted: Tue Nov 13, 2012 7:25 am
by seligdon
...so Ill continue posting here until you resolve on your end.

I'm using the MonthCalendar in a project to scheduled tasks on a remote server. Unfortunately if you pick a single digit day such as the ninth or month such as February the output is 2/9/2012. Powershell doesn't recognize single digits as valid entries. How do I modify the MonthCalendar so that it outputs as 02/09/2012 and not 2/9/2012?

$m = $monthcalendar1.SelectionEnd.month
$d = $monthcalendar1.SelectionEnd.day
$y = $monthcalendar1.SelectionEnd.Year

Function Create-ScheduledTask {
param(
[string]$ComputerName2 = "myserver",
[string]$RunAsUser2 = "domainaccount",
[string]$RunPass2 = "password",
[string]$TaskName2 = "$taskname",
[string]$TaskRun2 = "'PowerShell.exe -NoLogo -File myserverc$powershelldisable-userDisableUserSchedualed.ps1'",
[string]$Schedule = "$hour"+":"+"$minute",
[string]$Date2 = "$m"+"/"+"$d"+"/"+"$y"
)

$Command2 = "schtasks.exe /create /s $ComputerName2 /U $RunAsUser2 /P $RunPass2 /ru $RunAsUser2 /rp $RunPass2 /tn $TaskName2 /tr $TaskRun2 /sc ONCE /sd $date2 /st $Schedule /F"
Invoke-Expression $Command2

Thanks!

I still cant register my product....

Posted: Tue Nov 13, 2012 7:59 am
by Alexander Riedel
What do you mean by you can't register your product. You are obviously able to log in, otherwise you couldn't post here. What is the exact problem?
(I checked your user id and there is no key registered to it)

I still cant register my product....

Posted: Tue Nov 13, 2012 8:27 am
by Alexander Riedel
Please email your license key to support@sapien.com so we can evaluate what's happening.

I still cant register my product....

Posted: Tue Nov 13, 2012 8:33 am
by Alexander Riedel
FYI, the MonthCalendar object is documented here:
http://msdn.microsoft.com/en-us/library ... endar.aspx

Please understand that we cannot provide help with Microsoft components or software. As for general PowerShell questions, please use the PowerShell forum:
viewforum.php?f=18

I still cant register my product....

Posted: Tue Nov 13, 2012 8:55 am
by seligdon
anyone can loin if they register with your site. Only registered product users can post in certain forums. I cant post in anything but Customer Service as I get access denied.

I have sent your requested email.

I still cant register my product....

Posted: Tue Nov 13, 2012 8:57 am
by Alexander Riedel
I see your email, I will check into it.

I still cant register my product....

Posted: Tue Nov 13, 2012 10:02 am
by Alexander Riedel
Your keys are registered to userid nodgiles and therefore that is the userid that has the rights to post in the product forum. The userid you used for this post has no products registered to it.
As for the 2011 key, I don't know what "no longer works" means. Generally a key is deactivated when upgraded so it can't be upgraded again.
If you have trouble unlocking a product please let us know what exact error message you get.