SCCM query for file path
For some reason, I am unable to get a query to work for an exe located at a specific file path. I can do a query for the exe itself and get more results than I want, but I need to find it in a specific path.
The path and file name is: c:\Program Files\NBSI\sysdll\sysserv.exe.
Thanks!
Hi John,
when i tried to find a file at path like dbo.v_GS_SoftwareFile.FilePath ='c:\windows\'
No result found.
Similar Messages
-
LSMW :Is it possible to create F4 Help for File path selection
Hi All .,
Please let me know is it possible to create F4 help for file path creation in LSMW .
thanks
SreenivasHi,
I don't get it.
In the step " Specify files" you will have the option to pick your flat file which is on the desktop by pressing F4 .
What is that you exactly want??
Warm regards,
Hari Kiran -
F4 help for file path in selection screen.
Hi there,
I defined one parameter p_path for file path using RLGRAP-FILENAME. I have not got F4 for this. How to solve this problem, can anybody pls help.
Regards,
Naseer.Hi,
refer to the following code:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pc.
DATA: it_tab TYPE filetable,
wf_subrc TYPE i.
DATA: wf_pcfile LIKE rlgrap-filename.
DATA: wf_filter TYPE string,
wf_dir TYPE string,
wf_title TYPE string,
wf_ext TYPE string.
* if p_ml = 'X'. "Manula Load - PC File
wf_title = text-012. "Window title
wf_ext = '.TXT'. "Extension of the file
wf_filter = 'Text Files (*.TXT)|*.TXT'. "File Type
wf_dir = wf_pcfile. "Directory
*Adds a GUI-Supported Feature
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = wf_title
default_extension = wf_ext
file_filter = wf_filter
initial_directory = wf_dir
CHANGING
file_table = it_tab
rc = wf_subrc.
Hope this helps.
<REMOVED BY MODERATOR>
Regards,
Sipra
Edited by: Alvaro Tejada Galindo on Jan 31, 2008 9:48 AM -
SCCM query for Windows 8 machines without software installed
Would anyone be able to point me in the direction of an SCCM query for a collection that would list all Windows 8 machines without certain software installed?
ThanksI have this query to for systems without software installed:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,
SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.
ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System
inner join SMS_G_System_COMPUTER_SYSTEM on
SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId
where SMS_G_System_COMPUTER_SYSTEM.Name not in
(select SMS_G_System_COMPUTER_SYSTEM.Name from SMS_R_System
inner join SMS_G_System_COMPUTER_SYSTEM on
SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId
inner join SMS_G_System_ADD_REMOVE_PROGRAMS on
SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID =
SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.
DisplayName like "%SOFTWARE%")
The query works, but I would like to modify it so the query only includes certain versions of Windows. Any suggestions would be appreciated
Thanks -
F4 help for file path in the Application server
Hi All,
i want to provide the F4 help so as to enable us to give the file path in the application server (AL11). I'm in version 4.0
Regards
ShekharHi
Copy paste the following code and see the result
Here you can see 2 types of open dialogs
1. Directory View
2. File View
Use any one as per your requirement.
DATA : l_filetable TYPE filetable,
l_rc TYPE i.
DATA: l_folder TYPE string,
l_file TYPE string.
PARAMETERS: p_folder(100) TYPE c,
p_file(100) TYPE c.
*Provide a Dialogue box for getting a folder path
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_folder.
CALL METHOD cl_gui_frontend_services=>directory_browse
EXPORTING
window_title = 'Select Folder Path'
initial_folder = 'D:\'
CHANGING
selected_folder = l_folder.
p_folder = l_folder.
*Provide a Dialogue box for getting a file path
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Select a Text File'
initial_directory = l_folder
CHANGING
file_table = l_filetable
rc = l_rc.
Reward points generously
Regards
Akshay Chonkar
READ TABLE l_filetable INTO p_file INDEX 1.
CHECK sy-subrc <> 0. -
Query for file version less than 10.0 does not return expected data
I'm trying to build a query for all PCs that have a version of Iexplore.exe in c:\windows\program files\ that is less than 10.0 . When I run the query it returns no data. When I change 10.0 in the query to 9.9 it returns files with version 10.xxx in
the results. Its as if it is seeing 10.0 as 1.0. Is this expected ?
select SMS_R_System.Name, SMS_R_System.ADSiteName, SMS_G_System_SoftwareFile.FileName, SMS_G_System_SoftwareFile.FileVersion from SMS_R_System inner join SMS_G_System_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID = SMS_R_System.ResourceId where
SMS_G_System_SoftwareFile.FileName = "iexplore.exe" and SMS_G_System_SoftwareFile.FilePath = "C:\\program files\\internet explorer\\" and SMS_G_System_SoftwareFile.FileVersion < "9.9"It is because the values are not integer, they are a string. And therefore 1 is smaller then 9.
http://www.enhansoft.com/ -
Folks,
I've setup a query and this query is stored to file. I've specified the path but is it possible to have the name of the file being the date?
Regards,
MdZHI
Give me the file name that u r giveing
or for example say file name is ABCD
DATA: name(20) type c value 'ABCD'.
DATA: filename
CONCATENATE name sy-datum INTO filename.
and pass this filename as ur actual file name
Edited by: Rasheed salman on Nov 27, 2008 10:29 AM -
Compensate for file path changes in dynamically loaded HTML?
I'm using DWCS3 to work on a site which has the HTML inside a "Content" folder. The site's programmer uses AJAX to load the HTML into ASPX files which are in the root folder. So, although the HTML files are in the Content folder, all of their relative paths (links, images, etc.) must be set as if they are in the root folder.
My question is this: In design-time, is there any way that I can get Dreamweaver to treat the files in the Content folder as if they were in the root folder?
Thanks.Thanks for answering, Murray.
That's what I'm doing now, but it makes some of the features in Dreamweaver unusable. For example, in the Link Checker each of the root relative links in these documents shows up as a broken link, and the items to which they're linking appear as orphans. I know this can be managed with another workaround (moving the files into the root in design time, and then moving them back into the Content folder before publishing).
I was just wondering if there was a setting (or script, plug-in, etc.) in which I could tell Dreamweaver to treat these files as if they were in the root. -
REST API Query for file Versions - current version
Hi,
I have referred to the list of API query options from this link:
https://msdn.microsoft.com/en-us/library/office/dn450841.aspx .
As described in the post, the query goes as below
url: "<app web url>/_api/SP.AppContextSite(@target)/web
/getfilebyserverrelativeurl('/Shared Documents/filename.docx')/versions
?@target='<host web url>'",
This does not return the current file version details. Is there a way to get those details in the same query or should we place another query to get the current version file details as below
url: "<app web url>/_api/SP.AppContextSite(@target)/web
/getfilebyserverrelativeurl('/Shared Documents/filename.docx')
Thanks,
MeenaHi Meena,
In FileVersion endpoint, it will only return the old versions of a file.
If you want to retrieve all versions(including) of a file, there will be a need to run another request for the current version only, though which might cause extra workload.
Thanks
Patrick Liang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
SCCM Query for summary of installed software in a specific collection
Hi,
I have a SCCM 2012 SP1 environment, I am given a task to collect Summary of installed software in a specific collection. There is a built in report under Reports > Asset Intelligence > Software 01A - Summary of installed software in a specific collection.
But this report is throwing an XML error. I need the query to collect the installed software in a specific collection .Can anyone tell me what the query is ?
Also using the report builder is there a way to mirror the built in report so that I can generate the same report as Software 1A - Summary of installed software in a specific collection.
Regards, h9ck3r.Hi
In order to create a "copy" of the Summary of installed software in a specific Collection you would have to do the following:
Browse to http://ServerName/Reports/ - where ServerName is the name of the server where you installed SQL Reporting Services
Click the ConfigMgr_SiteCode folder
Select New Folder and in the New Folder window type the of name of the new folder i.e Custom Report (or whatever you like), then click
OK
Click the Asset Intelligence folder
Find the Software 01A - Summary of installed software in a specific Collection report
and click the drop-Down arrow next to the report and select Edit in Report Builder. Wait for Report Builder to open the report
In Report Builder, click the System Center Orb
(top left corner) and select Save As
In the Save As Report dialog box, change the name of the report to something else and browse to the folder you created earlier and then click
Save
In order to get data into the Software 01A - Summary of installed software in a specific Collection report, you must have
SMS_InstalledSoftware class enabled in Asset Intelligence. You write that you get a XML error when running the report. Verify that the required class is enabled in
Asset Intellingence and whether you are able to run any of the other Asset Intelligence reports or any´reports as all for that matter. -
SCCM query for taking report from all clients for a SW installed and its version
Hi , I need to pull a report from all servers in my landscape to identify the servers where 'HP system management homepage' is installed and its version. I have SCCM 2007 R2 and need to run a query/report. Please help me how to do this.
I am a beginner in SCCM.
Thanks in advance.
Vivek NambiarHi Vivek,
Try this SQL query and let us know if it helps. Use your SCCM SQL database or the 'Reports' feature on SCCM to run the same.
SELECT
dbo.v_R_System.Name0 as 'Host Name',
dbo.v_R_System.User_Name0 as 'User Name',
dbo.v_GS_OPERATING_SYSTEM.Caption0 AS 'Operating System',
arp.DisplayName0 as 'Product Name',
arp.Version0 as 'Product Version'
FROM dbo.v_Add_Remove_Programs AS arp
INNER JOIN dbo.v_R_System ON arp.ResourceID = dbo.v_R_System.ResourceID
INNER JOIN dbo.v_GS_OPERATING_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_OPERATING_SYSTEM.ResourceID
WHERE arp.DisplayName0 LIKE 'HP system management homepage%' AND
dbo.v_R_System.Operating_System_Name_and0 LIKE '%server%'
ORDER BY arp.Version0, dbo.v_R_System.Name0
~ Rajeesh M | Blog: ScorpITs | Please remember to 'Mark as Answer' or 'Vote as Helpful' on the post that helps. It helps others reading the thread and
recognizes useful contributions -
SCCM Query for any PC with 2 partitions?
I'm trying to find a query that will allow me to tell any computer in our network that has 2 partitions. When we deploy our Win7 through SCCM it has only the 1 partition and doesn't have the 100MB partition that is created if you install via a CD.
Problem is we have some old 7 computers that we need to find to change the way we deploy bitlocker and MBAM through SCCM and if i can find the ones with 2 partitions then I'll have a much easier job. Does anyone know how to do that via SCCM?Hi, This query will list all computers with a disk 0 parition 1, that should mean they have two partitions. I got some strange result on one of my HP Laptops though which had 4, But you could give it a try.
select SMS_R_System.Name, SMS_G_System_PARTITION.DeviceID from SMS_R_System inner join SMS_G_System_PARTITION on SMS_G_System_PARTITION.ResourceId = SMS_R_System.ResourceId where SMS_G_System_PARTITION.DeviceID = "Disk #0, Partition #1"
Regards,
jörgen
-- My System Center blog ccmexec.com -- Twitter @ccmexec -
Query for Hierarchy Path from child to parent for a given child key by user
CREATE TABLE EMP_ID
HEAD_ID NUMBER(4),
TAIL_ID NUMBER(4),
NAME VARCHAR2(20 )
Insert into EMP_ID Values (1011, 1008, 'C11');
Insert into EMP_ID Values (1008, 1003, 'C8');
Insert into EMP_ID Values (1012, 1003, 'C12');
Insert into EMP_ID Values (1020, 1003, 'C20');
Insert into EMP_ID Values (1025, 1003, 'C25');
Insert into EMP_ID Values (1015, 1012, 'C15');
Insert into EMP_ID Values (1012, 1005, 'C12');
Insert into EMP_ID Values (1005, 1017, 'C5');
COMMIT;now my requirement is like this
if choose the head_id as 1012 and tail_id as 1017
it should traverse the path form tail to head and print the path as shown below
c12/c5/c17/c12such that it shows that tail_id has been used as head_id in the same hierarchy path previously.
here the hierarchy is as shown below
1015
1012
1005
1017Rede,
Is this what you want?
CREATE TABLE EMP_ID
HEAD_ID NUMBER(4),
TAIL_ID NUMBER(4),
NAME VARCHAR2(20 )
Insert into EMP_ID Values (1011, 1008, 'C11');
Insert into EMP_ID Values (1008, 1003, 'C8');
Insert into EMP_ID Values (1012, 1003, 'C12');
Insert into EMP_ID Values (1020, 1003, 'C20');
Insert into EMP_ID Values (1025, 1003, 'C25');
Insert into EMP_ID Values (1015, 1012, 'C15');
Insert into EMP_ID Values (1012, 1005, 'C12');
Insert into EMP_ID Values (1005, 1017, 'C5');
Insert into EMP_ID Values (1017, 1012, 'C17'); ---- ==== This was missing in your setup example
COMMIT;QUERY and OUTPUT
SELECT *
FROM (
select
connect_by_iscycle as CYC
,dt.head_id
,dt.tail_id
,sys_connect_by_path
( dt.name
) AS EMP_PATH
from emp_id dt
start with dt.head_id = 1012
connect by NOCYCLE dt.head_id= prior dt.tail_id)
CYC HEAD_ID TAIL_ID EMP_PATH
0 1012 1003 /C12
0 1012 1005 /C12
0 1005 1017 /C12/C5
1 1017 1012 /C12/C5/C17
0 1012 1003 /C12/C5/C17/C12If you just want the PATH printed
SELECT *
FROM (
select
max(sys_connect_by_path
( dt.name
)) AS EMP_PATH
from emp_id dt
start with dt.head_id = 1012
connect by NOCYCLE dt.head_id= prior dt.tail_id)
/C12/C5/C17/C12vr,
Sudhakar B. -
Hi we know that with the User Driven Installation from SCCM, a user can install an Operating system into the WTG.
Do we have a query which can help us in identifying the WTG in the environment.
suryaWe can create the DCM Baseline in SCCM 2007 to find the same.
-
What is p1 for direct path read temp wait event in 11gr1
hi friends,
When i run this query in my database(11gr1) i get this
SELECT P1,P1TEXT FROM V$ACTIVE_SESSION_HISTORY WHERE event='direct path write temp' and sql_id='2sd3hryy2baav';
P1 P1TEXT
1260 file number
As per the documentation given on the link
http://docs.oracle.com/cd/B28359_01/server.111/b28320/waitevents002.htm#
when i run the query for file#
select *
from v$datafile
where file# = file#;
i get no rows returned.
Can someone please tell me what is this value 1266??Hemant K Chitale wrote:
P1 as FILE_ID is actually the value of DB_FILES (an instance parameter) + the temp file id. Check if DB_FILES is set to 1250. In that case P1 of 1260 would mean the 10th TEMPFILE.
How did you came to know that P1.V$ACTIVE_SESSION_HISTORY = DB_FILES + the temp file id ?
Because when I checked in the docs it is saying :
P1 NUMBER First additional parameter
http://docs.oracle.com/cd/E11882_01/server.112/e25513/dynviews_1007.htm#REFRN30299
Kindly share with us the link, is possible please.
Regards
Girish Sharma
Maybe you are looking for
-
when installed, quicktime overwrites flash files, like youtube or any ads that use flash, with the quicktime logo with "?". before, if i uninstalled quicktime, flash would work again. now even with quicktime uninstalled, firefox promts that the "quic
-
Update iPhoto on another Mac over a network???
I've got an iMac in my office and a Mini in the lounge. I have tried copying the "Master" photo's from within the iPhoto folder across the network but they do not show on the other Mac. What is the easiest way for me to do this? It gets very tiresome
-
I can't UNINSTALL Lenovo Veriface 4
I don't want this software on my computer. When I tried to uninstall it, it says it was never installed so cannot be uninstalled! It is in my Start>Programs List, so it is installed. I went into msconfig and unchecked it from startup. I attempted
-
HT204088 how to refund a purchase?
Dear All, I don't know why a magazine subscription has been purchased. I want to refund my money back. Could anyone please help me? Regards, M.
-
Dear All, We have one problem in material given for some process work. Actually we are procuring one assembly (e.g. Motor ) through external procurement. After some time if there is any problem in sub assembly(shaft) of MOTOR thn we are creating that