Ability to "task schedule" via small utilities backup/optimize
Include small utilites with Lightroom that can be used with the system "task scheduler" that will perform catalogue backup and optimize on a user defined schedule.
(Replying to myself here no edit option) Is there a way to optimize the catalog via single command line or in a bat file with sqlite3.exe and/or Contig.exe?
Similar Messages
-
Symptom One
You attempt to
schedule a backup every day via Windows Server Backup on Windows Server 2008 R2. At the beginning, the backup works without issue. But after a few days it failed and you receive the error “Windows Server Backup:
The system cannot find the path specified.”
Cause
The issue may occur if there is
no shadow copy storage space available on the backup volume.
Verify
You can use the List ShadowStorage command to check if you have enough storage space to store the newly created shadow copy. If you've reviewed the size of the backup snapshot and discovered
that there is no allocated space for the storage association, you need to resize shadowstorage.
Solution
You could run the command below to create shadow copy storage space on the backup volume:
vssadmin resize
shadowstorage /for=<ForVolumeSpec> /on=<OnVolumeSpec> [/maxsize=<MaxSizeSpec>]
More Information
Vssadmin resize shadowstorage
http://technet.microsoft.com/en-us/library/cc788050.aspx
Symptom Two
When you add
another external hard drive to backup schedule via Windows Server Backup on Windows Server 2012, it fails and you receive the error “The System cannot find the path specified.”
Cause
The issue is due to the
Original Destination Disk was not attached to the server.
Verify
You could check the disk status in Disk Management to see if the Original Destination Disk is offline or removed.
Solution
You need to attach
Original Destination Disk to the Server then choose another external hard drive as backup target. After that, you could remove the Original Destination Disk.
Workaround
To work around this issue, please use the WBADMIN command line tool to add disk.
WBADMIN ENABLE BACKUP -addtarget :{ DiskID}
The AddTarget parameter takes disk ID as parameter. It can be retrieved by running "WBADMIN GET DISKS" command.
Example:
WBADMIN ENABLE BACKUP
-addtarget :{ aa123d14-bba0-1dd9-0d93-80aaaa6bbb63}
More Information
Wbadmin enable backup
http://technet.microsoft.com/en-us/library/cc742130.aspx
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.good
-
Hi All ,
In my environment we are having exchange 2013 enterprise edition with SP1 which is installed in windows server 2012 standard edition.
We have enabled mailbox auditing for few mailboxes and also we have made simple powershell script with only the below mentioned commands .when i run the ps1 script in exchange management shell ,i can able to get the relevant output.
CMDLETS in powershell script :
Search-MailboxAuditLog -StartDate ((Get-Date).AddHours(-24)) -EndDate (Get-Date) -showdetails | fl >e:\output.txt
Note : we are having only the above commands in ps1 script , apart from that we don't have anything in it .
Sametime i have scheduled the same powershell script via task scheduler .But i cannot able to get the valid output ,instead of that i was getting a blank output file with no data in it .
Steps handled on my side to run the powershell script in task scheduler:
1.when i remove the parameter showdetails in the ps1 script ,i can able to get the output in the txt file .But in my scenario showdetails is the only parameter which will brought me more and in depth details about mailbox auditing.
The Difference what i have seen between exchange 2010 and exchange 2013
when in run the same powershell script via task scheduler in exchange 2010 enterprise environment installed in windows server 2008 r2 enterprise OS, i can able able to get the proper output without removing the showdetails parameter .
I am using the below methods to run the ps1 file via task scheduler in exchange 2013 environment .
program/script : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Add arguments : -PSConsoleFile "E:\Program Files\Microsoft\Exchange Server\V15\Bin\exshell.psc1" -Command ". 'C:\scripts\MailboxAuditReport\test.ps1'"
I have mentioned the error below and that is the one what i have faced, when i try to run the PS1 script directly in windows powershell and not in exchange management shell .
Error message : "the requesting account does not have permission to access the audit log"
Please help me out to resolve this case .
Thanks
S.NithyanandhamHi All ,
In my environment we are having exchange 2013 enterprise edition with SP1 which is installed in windows server 2012 standard edition.
We have enabled mailbox auditing for few mailboxes and also we have made simple powershell script with only the below mentioned commands .when i run the ps1 script in
exchange management shell,i can able to get the relevant output.
CMDLETS in powershell script :
Search-MailboxAuditLog -StartDate ((Get-Date).AddHours(-24)) -EndDate (Get-Date) -showdetails | fl >e:\output.txt
Note : we are having only the above commands in ps1
script , apart from that we don't have anything in it .
In case, if i have scheduled the same powershell script via task scheduler .But i cannot able to get the valid output ,instead of that i was getting a blank output file with no data in it .
Steps
handled on my side to run the powershell script in task scheduler:
1.when i remove the parameter showdetails
in the ps1 script ,i can able to get the output in the txt file .But in my scenario showdetails is the only parameter which will brought me more and in depth details about mailbox auditing.
The
Difference what i have seen between exchange 2010 and exchange 2013
when in run the same powershell script via task scheduler in exchange 2010 enterprise environment installed in windows server 2008 r2 enterprise OS, i can able able to get the proper output without removing the showdetails parameter .
I
am using the below methods to run the ps1 file via task scheduler in exchange 2013 environment .
program/script : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Add arguments : -PSConsoleFile "E:\Program
Files\Microsoft\Exchange Server\V15\Bin\exshell.psc1" -Command ". 'C:\scripts\MailboxAuditReport\test.ps1'"
I have mentioned the error below and that is the one what i have faced, when i try to run the PS1 script directly in windows powershell and not in exchange management shell .
Error message : "the requesting account does
not have permission to access the audit log"
Please help me out to resolve this case .
Thanks
S.Nithyanandham -
Incremental and Full backups using WBADMIN and Task Scheduler in Server 2008 R2
I'd like to create an automated rotating schedule of backups using wbadmin and task scheduler, which would backup Bare Metal Recovery; System State; Drive C: and D: to a Network Share in a pattern like this:
Monday - Incremental, overwrite last Monday's
Tuesday - Incremental, overwrite last Tuesday's
Wednesday - Incremental, overwrite last Wednesday's
Thursday - Incremental, overwrite last Thursday's
Friday - Incremental overwrite last Friday's
Saturday - Full, overwrite last Saturday's
I need to use the wbadmin commands within the Task Scheduler and do not know any of the required Syntax to make sure everything goes smoothly, I do not want to do this through the CMD.I know each backup for the previous corresponding day will be replaced, how do you figure I wont be able to do incremental backups...
Because incremental backup is based on Volume Shadow Copy (VSS) feature and due to Windows Server 2008 R2 limitations (this limitation is resolved in Windows 8) only one version of backed up data can be stored in a shared folder. So the
result is that every time you back up some data on a shared folder, you actually creating a full backup of them.
is it not supported through task scheduler?
The Task Scheduler is only a feature that does the tasks that you have defined for it. Actually it runs the
wbadmin command that runs on an operating system with the mentioned limitation.
I know you can do Incremental backups through Windows Server Backup, but my limitation using that is I cant setup multiple backups.
Yes, you are right. Windows Server Backup feature in Windows Server 2008/2008 R2 has not this functionality (although
ntbackup in Windows XP and Windows Server 2003 had this functionality). So, the only workaround to this limitation is through using Task Scheduler feature with wbadmin command. For more information see the following article:
http://blogs.technet.com/b/filecab/archive/2009/04/13/customizing-windows-server-backup-schedule.aspx
So are you saying that even though I want each backup to go to a different place on the Shared Folder that it will replace the previous backup anyways?
No and because of this I said in my previous post that with some modifications and additions you can do the scenario. For example, you back up to a shared folder with the name of Shared1 on Mondays. You also have been configured the backup feature to back
up data on another shared folder, named Shared2, on Wednesday. When you repeat the backup operation in Shared1, only the backed up data that resides on it will be affected, and the data on Shared2 remains intact.
Please feel free to let us know if you have any question or concern.
Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
the thread.
Hi R.Alikhani
Then do you know if wbadmin supports incremental backup in Windows 8? As you said the VSS issue is fixed in Win8. However, the wbadmin has less options then in windows server. I tried a bit but it seems it only supports full backup? ps, I use a network share
- will the incremental backup works if I define a ISCCI then? My remote backup PC is also running Win8. -
Task Scheduler Won't Run WBADMIN Backup
After several weeks of trying, the backup (wbadmin) doesn't work from the task scheduler. When I enter the WBADMIN Start Backup command directly into a command prompt, it executes perfectly and backs up everything it's supposed to, but for some reason,
when that EXACT SAME COMMAND is executed from the task scheduler it starts, then immediately stops. I opened the Task Scheduler, clicked on "Task Scheduler Library" in the left pane, and looked at the backup job in the top window of the center pane.
The "Last Run Result" column simply showed, "(0xFFFFFFFF")". I also clicked on the job's History Tab, which showed 7 entries at the date/time the job is set to trigger, which indicated that the task started and completed, "successfully" within the same
second (i.e. 01:00:00), but absolutiely nothing is backed up, nor are there any entries for the trigger date on the backup drive.
This has happened four Sundays in a row, and each time, when I subsequently execute the WBADMIN command from a command prompt, it works correctly. Any ideas about what I'm missing and/or doing incorrectly
CreaconThanks Jeff, but unfortunately, I've already done all those things from advice in a previous thread. The task scheduler DOES schedule the task, and my History is not disabled. But when the Task Scheduler starts, it then stops immediately with two
log entries: 1) "Action Completed", and in the lower history window "Task Scheduler successfully completed the task ...", and 2) a log entry saying "Task Completed", and in the lower history window, "Task Scheduler successfully finished...", but NOTHING
is backed up. I've gone through the task scheduler settings for the task, and everything seems ok, but no dice. Yet, I can enter the EXACT SAME wbadmin command into a command prompt, and the backup works fine.
Here's the actual "SCHTASKS" command that I entered to schedule the job:
SCHTASKS /Create /SC WEEKLY /D SUN /TN CTServerWeeklyBackup /RL Highest /ST 01:00 /TR "WBADMIN START BACKUP -backupTarget:f: -allCritical -include:C:\,D:\CAB\,D:\Downloads\,D:\Extracts\,D:\SSLCert\,D:\Temp\,U:\CAB\,U:\Shares\,U:\Temp\ >
C:\backupLogs.txt"
The above command executed without incident, then I immediately checked the task scheduler, and the task was there, properly scheduled. When the trigger time/day occurred, the task simply started then immediately stopped, yet when I enter just
the WBADMIN command into a command prompt, it executes correctly, completely and without incident.
Creacon -
Backup-GPO cmdlet errors in Task Scheduler
I have scheduled a simple script on my Windows Server 2012 domain controller to backup my group policies (separate from the System State backup). I ran the script manually, and it works as expected. I scheduled the script in Task Scheduler using a service
acct with domain admin privileges. Due to our domain policy settings, I had to select the "Do not store password" option on the job, otherwise the usual error regarding "no session" is presented. This means I have access to local resources
only (on the DC).
I also right-clicked the job and selected "run" and the job executes properly. However, when the job kicked off at the scheduled time on its own, it only ran partially. The date stamped backup folder was created, and it contained a partial "manifest.xml"
file which is created at every backup. The manifest only has the header in it, no other content such as GPO names and GUIDs.
In the Powershell transcript output, it generates an error when the Backup-GPO cmdlet runs:
Backup-Gpo : The system cannot open the device or file specified. (Exception from HRESULT: 0x8007006E)
The command is:
Backup-Gpo -All -Path $backup_dir\$date_stamp
And yes, I have selected to run the job without the user being logged in. Is it possible to backup domain GPOs without the credentials cached in the job? Are the GPOs considered a "local resource" on the domain controller?Anna,
You are correct, if I disable that policy setting that I do not need to select "Do not store password" and the job runs fine.
However, the PowerShell script does run with the "Do not store password" option checked, it just normally fails when trying to access the policies to backup with a seemingly random error depending on the domain controller. Then, after 3 days of failures,
I checked this morning and it had run fine on two of three domain controllers. No changes to policy or the script or the job. It isn't cut and dried as to why it works or doesn't work.
I guess what I am ultimately looking for is a better description of what resources are still available using that setting ("Do not store password"); are ADDS related commands considered local resources on domain controllers, or do you always need a cached
credential?
Jim -
Executing powershell script via task scheduler
Hello,
I am trying to execute powershell script via windows task scheduler which will forcefully delete all email in a mailbox, but I am getting the below errors
Operational Code - 2
Task Category - Action Completed --- Task Scheduler successfully completed task "\IL98" , instance "{2b193375-cbd2-4986-918d-3cfd4027d6b6}" , action "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" with return code 0.
Last Run Result - 0X0
When I am adding additional cmdlets in the script "Set-ExecutionPolicy Unrestricted", I am getting Last Run Result 0X5 rest of the error remains the same.
Powershell version - 3.0
Task Scheduler version - 1.0
If I try to run the script manually via Exchange Powershell the script executes without any errors
Thanks in Advance,
Ankush ShahI figured out the problem, there wasn't any problem with the script but I had to correct inputs in windows task scheuler
Below is the resolution:
Under Actions:
Program/Script --> ws\System32\WindowsPowerShell\v1.0\powershell.exe
Add Argument --> -noexit -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto
; <filepath>"
Eariler I was writing the filepath after double quote "
Also I have selected the option "Run with Highest Privilages" to avoid
0x5 error -
Batch/Powershell file wont run via Task Scheduler
Hello,
I'm having trouble getting my Powershell file to run from Task Schedule during logoff. In short, I'm trying to upload my NTUSER.DAT (roaming profile) to my profiles folder on the file server. Dynamic VLAN switching does not support roaming profiles thus
I have to use a script to solve this issue.
My powershell script is as follows:
start-sleep -s 15
Set-Content -Path "C:\Temp\log.txt" -Value "Hello World"
$FileServer = 10.10.5.5
$FQDN = "$Env:UserDomain"
$User = Get-WmiObject -Class Win32_NetworkLoginProfile | Sort-Object -Property LastLogon -Descending | Select-Object -Property * -First 1 | Where-Object {$_.LastLogon -match "(\d{14})"} | Foreach-Object { New-Object PSObject -Property @{ Name=$_.Name.TrimStart("$FQDN\") }} | Select -ExpandProperty Name
copy-item -path C:\Users\$User\NTUSER.DAT -destination \\$FileServer\Profiles$\$user.V2\ -force
copy-item -path C:\Users\$User\NTUSER.DAT -destination \\$FileServer\Profiles$\$user.V3\ -force
I have a task schedule to run as Domain Admin when event ID 4647 occurs (logoff). It is set to run with the Highest Privileges checked, also I have enabled to run weather the user is logged in or no. The Domain Admin account also has access to ever file,
both at source and destination. Set-ExecutionPolicy is set to unrestricted. The way I call the powershell script in Task Scheduler is:
Action: Start a program
Program/Script: C:\temp\launch.bat
The launch.bat contains the following:
Powershell.exe -executionpolicy unrestricted -File "CALL C:\temp\powershell.ps1"
The task is triggered each time when the user logs off, I have confirmed this in the logs. But the NTUSER.DAT file fails to copy over to the network, in fact the log.txt file isn't even generated. I have confirmed my code to work, it's just the task scheduler
part calling the code where I think it fails.
Can you guys point me in the right direction here? I know I'm close, but not sure what I'm missing.Jrv,
Yes in my testing the task schedule is unreliable, I don't have any info on how long the profile is locked, thus I can't copy the profile to the server when the OS still has it locked.
What do you propose I change my vlan configuration to?
Thanks.
What you are trying to do cannot be done. That is why it is not being done. If you set up roaming profiles and redirected folders this would happen automatically. It would also happen very quickly. THat is because Windows posts cahnges
to teh roamed image as they happen. Only changes are copied. Items in teh registry which are only valid during logon (Dynamic Entries) are nver copied so updates that are not needed are not posted. It is these updates thaat can keep the registry
locked for a very long time.
If you scan your network you will likely find hives thaat are loaded with no one logged in. WIndows 7 and later have a utility that forces and unload after a few minutes. It posts the reson for the forced unload to the event log.
As for the VLAN it is likely not configured correctly. THe profile must be on a server that is available on the same net ID as the PC. YOu may also have to allow the switch to suspend if you are using per-user conenctions. Contact the VLAN
vendor and tell them about issues with Roamed profiles. THey will walk you through the setup. THe most common issue is thaat the switch specifies 1Gb and the server is set to 100Mb and the switch is not set to match the speed. THisis a simplpe
configuration error done by a tech who does not have much experience with VLANs. THey tend to think that setting everything to 1Gb or some other maximum will work but it won't. It can also be caused by a files server with a 1Gb card that is a pront
spooler spooling to a 100 or 10Mb older printer. This disrupts the card and the VLAN cannot attach to it until the spooler is dona nd the card can switch. It can also be caused by a bad card or a bad switch.
Then VLAN vendors techs are usually very good at troubleshooting this kind of issue. Remote VLAN logging and diagnostics can also pick out the issue.
¯\_(ツ)_/¯ -
Executing powershell scripts via Task Scheduler
Hi,
I have a powershell script that I wrote that when executed from the shell works fine but when executed from task scheduler does not work.
In my script, an email is sent out based on the results of the execution. When I run this from the shell, email goes out, when scheduled, no email and there is no indication of errors having occurred anywhere in the system.
Has anyone run into a similar issue?
I did change my powershell execution policy to be unrestricted (both in the x86 and x64 consoles). I am running Windows 2008 R2.
Thanks - Greg.Hi,
In addition the above suggestions, please also refer to the below threads:
Using Task Scheduler for a powershell script on server 2008
http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/e298d613-47b8-4492-92d1-0b55cc8497c1
Using Windows Task Scheduler to execute Powershell Script frequently
http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/5901a6ad-ba18-4817-82a9-f75d2d6b439f
Hope this helps.
Best Regards,
Yan Li
Yan Li
TechNet Community Support -
Executing powershell ise(x86) scripts via Task Scheduler
hi
i have powershell script that can only run with powershell ISE(X86)
and i want to add it to Task Scheduler
but my problem is when i try to test the script using "Powershell" or "run" before i add it to the Task Scheduler
using "powershell" i wrote :
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell_ise.exe -file "c:\my path\update.ps1"
and it only open the script in powershell ISE(X86) without Executing the script
how can i Execute the script not open it ??thanks
I didnt try your solution
but i solved the problem
it was two step first instead of using Set-Culture
I use
$nc = New-Object Globalization.CultureInfo 'ar-kw'
then i add Type Font 'Courier New' to powershell font
in regedit.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Console\TrueTypeFont
the character may not be readable in the console because they are from left to right and there are spaces between each character
but when i update my ADUC or send them to out-file they become readable
these are the references for solution
change the CultureInfo :
http://www.vistax64.com/powershell/16358-how-do-i-explicitly-set-currentculture.html
Add Font 'Courier New' to powershell
http://silentcrash.com/2012/05/how-to-add-hebrew-to-powershell-or-command-cmd-console/ -
Creating Oracle Job with Task Scheduler
Hi,
Platform: Oracle10g R2, Windows 2003 Server
I have the below script on my Linux server that backups up the database. It's run via crontab.
--------------- script ---------------------
-- Environment variables goes here
cd $ORACLE_HOME/bin
./rman target / <<EOF
startup mount;
backup database plus archivelog delete input;
delete noprompt obsolete;
alter database open;
I want something similar I can do on windows like .bat file that I can schedule to run via Task Scheduler.
Any help please?
Thnaks and regards,
CreemsHi AG,
I tried to do that but it's not working.
But I did something similar for auto-delete of flashback logs and it works but the backup thing aint working.
What can I do?
Here is what I did for the auto-flashback delete
=======
RunSQL.bat
=======
-- content of RunSQL.bat
@ECHO OFF
TITLE Resetting Flashback Logs
CLS
ECHO Please be patient. This will take some time.
ECHO.
ECHO.
SET ORACLE_SID=PROD
sqlplus.exe /nolog @del_flashback.sql
ECHO.
ECHO.
ECHO FLASHBACKs reset. Please continue with your other procedures.
ECHO.
==========
del_flashback.sql
==========
-- content of del_flashback.sql
connect /nolog
conn sys/oracle as sysdba
SHOW USER
shutdown immediate
startup mount
alter database flashback off;
alter database flashback on;
alter database open;
SHOW USER
exit
This works, but when I did the same with RMAN backup it doesn't.
Any more help please?
Thanks and regards,
Creems -
Use a "Write" Event on a Specific Drive or to a Specific Folder to Trigger a Task in Task Scheduler
I first posted this question on the Microsoft Community forum. It was suggested that I repost it here.
I have a question!
(Pleas forgive the long post...)
What I am trying to do: (This is what I have not yet figured out!)
I am trying to figure out how to trigger a task, in Windows Task Scheduler (WTS), whenever a "Disk Write" event occurs on a specified drive on the machine. - Or, more specifically, whenever a new file or folder is written or
saved to a specified Folder, or a specific Disk Partition, or a specific Hard Disk on the machine - whichever is more relevant for the end goal.
The overall goal:
When a "disk write" operation occurs and data is written to a specified location on a Hard Drive, start a Program at the beginning of the following hour, that will run a backup of the contents
of that location, (after - of course - the new data has been written). After the backup is complete, disallow the program from being started again at the beginning of the next hour, unless more data is written to the specified location beforehand.
Example:
At 2:27pm, I save a new word document to "D:\My Folder\". When the new Word doc file is saved to "D:\My Folder\", my preferred Backup software application is then scheduled to run a backup at the beginning of
the following hour - at 3:00pm - which will then create a new backup of "D:\My Folder\".
The backup software will NOT be scheduled to run again at the next following hour - at 4:00pm - unless another file or additional data is written to "D:\My Folder\" - between 3:00pm and 4:00pm.
Summary:
The goal here is to only run a backup at the beginning of the next hour, following a “disk write” event to a specified location on the hard drive.
Steps that I have, so far, on how to make this happen:
Whenever data is written to a specified location on a hard drive (i.e. "D:\My Folder\"), "Task A," in Windows Task Scheduler, will be triggered to execute its action.
The Action in "Task A" will run a script that changes the Status of "Task B" to ENABLED.
The Action in "Task B" will, on a continuous hourly schedule, start a program that will perform work on the machine. (In this case, it will run a Backup Task in my preferred backup software.)
Upon completion of work by that program (the Backup software), that program will run another script that will change the Status of "Task B" back to DISABLED; preventing "Task B" from continuing that program every hour
according to its hourly schedule.
How do I do this: ... ?
The thing holding me back on making this work is figuring out how to identify the source that generates the “disk write” event and event ID I need, so I can use it to trigger a task in Windows Task Scheduler - in the way that I need. Furthermore,
the “disk write” event needs to specific to a disk drive that I specify and if at all possible, specific to a location that I specify, i.e. “D:\My Folder\”.
Any help on this as well as other suggestions on making this work is greatly appreciated!
Ryan A MillerHello Ryan A Miller,
What is your current situation?
Have you try the script as Frederik Long mentioned?
To receive better support, it is recommended to post in the TechNet Script forum.
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
The professionals there will be glad to help you.
Best regards,
Fangzhou CHEN
Fangzhou CHEN
TechNet Community Support -
ERROR in Scheduling via Transaction-IP30
Hello Gurus,
When I am scheduling the maint plan 1234, system is throwing Error message IP202-Maintenance plan 000000001234 NOT scheduled.
I am using following scenario in * ECC5.0*:
I've created a single cycle plan 1234, with measuring point as a counter . The Cycle/Unit is say 1440min.
Tasklist is attached.
Call horizon 100%.
SchedPeriod 365 Day.
And Cycle modification factor as 1.00 Other parameters are NOT maintained.
Counter (Category M) is having character unit as "minute".
Created Measuring document in IK11and started scheduling via IP10. I got Scheduled Called/Scheduled Hold.
Everything is fine up to this step.
Now I want to run IP30 manually for next 30 day but I am getting Error message IP202- Maintenance plan 1234 NOT scheduled.
What is possibility of this error?
This is very strange to me.
I'll really appreciate for your efforts.
Best Regards,
Ganesh.Hi All,
Thanks for your response.
Details of Maintenance Plan and Call Object:
Maintenance Plan cycle : Single Cycle Plan with Cycle/Unit 1440 min
Counter: Characteristic (say RUNTIME) with Unit Min
Task List: General task list assigned
Scheduling Parameters: Call Horizon=100%; SchedPeriod 365 DAY;
I've created 4-5 measuring documents.
Initially done scheduling using IP10.... (ofcourse restated number of times)...
Still I am getting same error.
I'll urge please consider I am using ECC5.0
Request you to guide me what went wrong....
Call Object is Preventive Order (PM02)
Regards,
Ganesh -
Hi All,
We are outsourcing services to our clients. One of our clients whom we manage the whole Active directory / Exchange 2010 infrastructure have a requirement.
We would like to run a .exe file from one server to another server / servers remotely to generate a report. The challenge is that we do not have permissions on some servers to access so we cannot login manually and run the .exe file to generate that report.
(All are in the same domain restricted or non restricted)
The domain Administrator (Client) Has restricted us to login to those servers due to security reasons. And is not providing us permissions or not giving the username and password to login to those servers.
Requirement is :
To run a .exe file with some parameters in it on the restricted servers Via powershell script or task scheduler (As the task will be created by the domain admin in the server in which we have access by entering the domain account).
As we have to run this .exe file on around 60 servers (restricted) so an option should popup asking the name of the agent in which you want to RUN the .exe file or a source input via CSV will also be fine.
Can anyone tell me or can this be possible ? Is there any one who has made such a script.
Can anyone please help.
Gautam.75801Hi Justin,
Thank you for the suggestion.
Below is the script what i Executed.
"C:\Windows\system32\PsExec.exe" @C:\HPS\Serverrlist.txt cmd /C "server name\C$\hps\hps.EXE"
Pause
I tried using PSExec. But in the LAB domain as well as in the production i tried this on servers in which i have full access. When i execute this i get the output as Access is denied. Below is the screenshot of the Error.
I have installed Psexec on both machines.
I have full admin rights to the shared folder or network location which i have scratched in the screenshot. Not sure why i am getting this error.
Also analysed the event logs and found a failure event once i execute this script.
A handle to an object was requested.
Subject:
Security ID:
Domain name\My username
Account Name:
Lg167978
Account Domain:
My Domain
Logon ID:
0x234992
Object:
Object Server:
Security
Object Type:
File
Object Name:
C:\Windows\System32\eventvwr.msc
Handle ID:
0x0
Process Information:
Process ID:
0x17e0
Process Name:
C:\Windows\System32\mmc.exe
Access Request Information:
Transaction ID:
{00000000-0000-0000-0000-000000000000}
Accesses:
READ_CONTROL
SYNCHRONIZE
WriteData (or AddFile)
AppendData (or AddSubdirectory or CreatePipeInstance)
WriteEA
ReadAttributes
WriteAttributes
Access Reasons:
READ_CONTROL: Granted by
D:(A;;0x1200a9;;;BA)
SYNCHRONIZE:
Granted by D:(A;;0x1200a9;;;BA)
WriteData (or AddFile):
Not granted
AppendData (or AddSubdirectory or CreatePipeInstance):
Not granted
WriteEA:
Not granted
ReadAttributes:
Granted by ACE on parent folder D:(A;;0x1301bf;;;BA)
WriteAttributes:
Not granted
Access Mask:
0x120196
Privileges Used for Access Check:
Restricted SID Count:
0
Can you help in solving this.
Gautam.75801 -
How to schedule the Batch file to run from task scheduler
Hello Everyone,
I have a batch file which kills the wscript.exe process, I am doing this manually, I need to schedule this batch file to run from task scheduler whenever the process wscript.exe reaches to specific numbers, i.e if the wscript.exe process count in task
manager reaches to 30, the task schedular should execute this batch file,
Is there a way to do so.
dibuHi,
àI need to schedule
this batch file to run from task scheduler whenever the process wscript.exe reaches to specific numbers.
As I know, it will not help you to achieve this target via Scheduled Task. When configure Scheduled Task, there
seems no Trigger option that help you specify this condition (process counts reaches to specific numbers) to trigger the batch file.
You could consider that improve this batch file. Adding the
Check function to the script will be a better option. For script issue, you can post it in the
Official Scripting Guys Forum. I believe we will get a better assistance there.
If any update, please feel free to let me know.
Best regards,
Justin Gu
Maybe you are looking for
-
Mail crashes every time I try to open a message with an attachment
Every time I attempt to open a message that contains an attachment, Mail crashes. Does anyone know what is going on? If it helps, I found this info in a crash log called: ???.crash.log The specific Mail crash log doesn't appear to have recent info (n
-
Hello, I'm looking to get an Ipod Classic due to the huge memory it has. The majority of my library is in FLAC and made up of full albums, some with cue files as well. My library is well over 2TB (external hard drive) and mainly FLAC with occasional
-
Serious problem of jdbc-mysql connectivity using tomcat
hi everybody i m in serious problem since last 15-20 days. i m trying hard to make the connection jdbc-mysql using tomcat with the help of a jsp test page but every time i am facing almost the similar probems listed below in detail: to make sure that
-
Jpeg email attachments won't open in OS 10.10
Picture attachments to Mail won't open when in OS 10.10, but same message opens okay in iOS
-
Error in UNC path while using RWCLIENT
I am trying to run a report from command line using a bat file.The content of the bat file is as follows D:\ORANT\9IDS\BIN\RWCLIENT report=\\nyclegchuias\d\sample.rdf userid=sdh/arbosh38@pcsprod server=rep_nyclegchuias DESNAME=D:\SAMPLE30155.PDF DEST